Windows linux port 80 occupancy status view

  

Query whether the port is occupied, which process is occupied by two ways:
1, netstat -anl |  Grep "80" ;2, lsof -i:80 When we use netstat -apn to view the network connection, we will find many things like the following: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 52 218.104.81.152:7710 211.100.39.250:29488 ESTABLISHED 6111/1 The following article mainly uses the 80 port number as an example. If you want to know other port numbers, you can also use this method............ .............. 1, how to view the 80 port occupancy situation under windows? Is it occupied by which process? How to terminate, etc. Here mainly use the DOS tool under Windows, click " Start "--"Run", enter "cmd" and click the OK button to enter the DOS window, then run the following commands separately: >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 with process number 1688. >tasklist |  Findstr "1688" Image Name PID Session Name Session # Memory Usage ====================================== ================================ Inetinfo.exe 1688 Console 0 2,800 K

Copyright © Windows knowledge All Rights Reserved