举例说明:
查看8080端口占用情况:
1、在windows命令行窗口下执行:
C:/>netstat -aon|findstr "4000"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 4000
2、端口被进程号为2016的进程占用,继续执行下面命令:
C:/>tasklist|findstr "4000"
peer.exe 4000 RDP-Tcp#06 2 4,172 K
很明显,peer.exe占用了8080端口





