View occupied ports and kill processes

window environment:

cmd-> Enter netstat -ano (it seems that -aon can also be used) and press Enter to view all occupied ports;

       -> Enter netstat -aon (it seems that -ano can also be used) |findstr "4369" to see if port 4369 is occupied; 

If it is occupied, ctrl+alt+del or right-click to open the task manager, find the corresponding PID (the last column of data above), and manually end the process (be careful not to end it casually, it may also be a system process, it is best to check).

       -> Enter tasklist|findstr "5636" to see which process occupies the port:

       -> Enter taskkill /pid 5636 /F to kill the process:

Can not be terminated, the above does not use cmd to right-click the administrator to start, after use:

 

Guess you like

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