DOS command to view the port is occupied which program

-aon netstat | findstr 80
Proto Local Address Foreign Address State PID
==== ============ ============== ======= ====== ===
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1688
can be seen as a 80-port 1688 is the process ID of the program takes.
tasklist | findstr 1688
image name PID session name session # memory usage
= ======================== ====== ================ ==== ============ ====
Inetinfo.exe 1688 Console 0 2,800 K
obviously, is inetinfo occupied port 80; inetinfo.exe is mainly used for debugging support for Microsoft Windows IIS web services, this program running on your system is very important
taskkill / pid 1688 / F
success: PID for the process has been terminated in 1688.

Guess you like

Origin www.cnblogs.com/soleds/p/11619376.html