Port occupancy investigation

First, hold down the win + R, input cmd, Enter

View port occupancy

Use netstat -ano | findstr command to view

For example, I want to see occupancy port 8080

netstat -ano|findstr "8080"

As you can see, 1388 is that the process id, which is the pid

 

Find the appropriate program by pid

tasklist|findstr "1388"

 

end process

By process name   

taskkill /f /t /im chrome.exe

By pid         

taskkill /f /pid 1388

 

Guess you like

Origin www.cnblogs.com/hemou/p/11976380.html