Check which service a port is occupied under Windows

1. Check whether a port is occupied

Open the command line and enter: netstat -ano |findstr "3306"

2. Check which service the port is occupied by

tasklist | findstr PID

As shown below:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324945869&siteId=291194637