View whom occupy a port under Windows

Under Windows how to view a port occupied by whom (reprint)

Situation often encountered when developing the port is occupied, this time is always very maddening, know better which is occupied by the process, it wants to end if we do not know how to do it?

I tell you one way, _.
1 start ----> ---- Run> cmd, or window + R key combination to bring up the command window;

 

 


2, enter the command: netstat -ano, list of all the interfaces. In the list we observed port is occupied, such as a 1224, first to find it;

 

 


3, see the occupied port corresponding PID, enter the command: netstat -aon | findstr "8081", enter, write down the last digit, ie PID, here is 9088;

 

 

4, continue to enter tasklist | findstr "9088", press Enter to see which process or program occupied port 8081, the result is: node.exe

 

 


Or are we open the Task Manager, switch to the Processes tab to see who in a 9088 PID corresponding process is, if you do not see the PID column, as shown below:

 

 

 

Then we can end this process out of the ~ ~

Guess you like

Origin www.cnblogs.com/wotainanle/p/12498001.html