windows环境查看端口占用情况

在windows下使用:

netstat -o

可以看到如下结果:

C:\Documents and Settings\Administrator>netstat -o

Active Connections

Proto Local Address Foreign Address State PID
TCP 20100102-1216:2173 localhost:2174 ESTABLISHED 6096
TCP 20100102-1216:2174 localhost:2173 ESTABLISHED 6096
TCP 20100102-1216:3484 localhost:8909 ESTABLISHED 784
TCP 20100102-1216:8909 localhost:3484 FIN_WAIT_1 3000
TCP 20100102-1216:2089 hx-in-f147.1e100.net:http ESTABLISHED 1816
TCP 20100102-1216:2096 205.168.236.232:http ESTABLISHED 1816
TCP 20100102-1216:2097 hx-in-f95.1e100.net:http ESTABLISHED 1816

找到占用的端口对应的进程号,即PID列对应的号码,

打开任务管理器,找到PID对应的号码的进程即可。

你可能感兴趣的:(windows)