cmd view the port occupancy and port closures of the occupied

 

Query port number command:

  netstat -nao | findstr "port number"

As shown, see 8080 port number, found to be PID process takes up to 2260

 

 

Close occupy the port command:

  taskkill /F /PID 进程PID

As shown, turn off the process with PID 2260

 

Guess you like

Origin www.cnblogs.com/CD3245/p/11409754.html