Check whether port 80 occupies windows and linux. The following articles mainly use port 80 as an example, if you want to know other port numbers, you can also use this method .......................... 1. In windows, how does one view port 80 usage? Which process is occupied? How to terminate. here we mainly use the dostool in windows. Click "start" -- "run", enter "cmd", and click "OK" to enter the DOS window. Then run the following commands:> 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 a program with process number 1688.> tasklist | findstr "1688" image name PID session name session # memory usage ==================== ========================================================== = inetinfo.exe 16 88 Console 0 2,800 kis very explicit, so inetinfooccupies 80 ports. inetinfo.exe is mainly used to support debugging of Microsoft Windows IIS network services. This program is very important to the normal operation of your system. of course, the inetinfo.exe process only occupies port 80, which is only the case on my machine. if you do not know what the process is for, do not blindly kill it, it is best to search Baidu or Google first; of course, if you know it well, and are sure you can terminate, continue with the following command.> taskkill/pid 1688/F: The process whose PID is 1688 has been terminated. Worker is the image name in the task manager. Select it and click "End Process".)> tasklist | findstr "1688" to confirm whether the process is successfully terminated, if the command is successfully terminated, an empty value is returned. 2. How can I check port 80 usage in linux? Which process is occupied? The following two methods are available to query whether a port is occupied, such as how to terminate or not: 1. netstat-anl | grep "80"; 2. lsof-I: method for terminating the process: kill pid