Windows checks port usage and kills processes

"Who is occupying port 80, how to check it, and how to terminate it?", here is a brief explanation, how to check the occupancy of port 80 under Windows? Which process is occupied by it? How to terminate it, etc.
Here are mainly used DOS tool under windows, click "Start" - "Run", enter "cmd" and click the OK button to enter the DOS window, and then run the following commands respectively:
>netstat -aon | findstr "80"
Proto Local Address Foreign Address State PID
==== ============ ============== ========== ======
TCP 0.0. 0.0:80 0.0.0.0:0 LISTENING 1688
It can be seen that port 80 is occupied by the program whose process number is 1688.
>tasklist | findstr "1688"
image name PID session name session # memory usage
========== ============================================= ===== =======
inetinfo.exe 1688 Console 0 2,800 K
Obviously, inetinfo occupies port 80; inetinfo.exe is mainly used to support the debugging of Microsoft Windows IIS network services, this program is very important for the normal operation of your system.
Of course, and Not only the inetinfo.exe process will occupy port 80, this is just the situation on my machine. If you don't know what this process is for, don't kill it blindly, it's best to search on Baidu or Google first; Of course, if you know it well and are sure that it can be terminated, then continue with the following command.
>taskkill /pid 1688 /F
Success: The process with PID 1688 has been terminated.
If you are familiar with this process and are sure that it can be terminated, then use the above command to terminate the process with PID 1688. (This step can also be performed in the task manager, inetinfo.exe is the image name in the task manager , select it, click "End Process")
>tasklist | findstr "1688"
to confirm whether the termination is successful again, if the execution command is terminated successfully, it should return empty .

 

This article comes from: http://www.myhack58.com/Article/48/65/2014/41981.htm

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326939911&siteId=291194637