netstat -ano 查看端口使用情况
或者 netstat -ano|findstr 80
C:\Documents and Settings\cjx>netstat -ano|findstr 80
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2404
TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 512
TCP 0.0.0.0:8082 0.0.0.0:0 LISTENING 1856
TCP 0.0.0.0:8083 0.0.0.0:0 LISTENING 512
TCP 0.0.0.0:8093 0.0.0.0:0 LISTENING 512
TCP 192.168.6.8:3728 192.168.6.1:808 ESTABLISHED 3912
TCP 192.168.6.8:3754 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3755 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3757 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3758 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3759 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3760 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3761 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3765 192.168.6.1:808 CLOSE_WAIT 3148
TCP 192.168.6.8:3830 192.168.6.1:808 TIME_WAIT 0
TCP 192.168.6.8:3832 192.168.6.1:808 TIME_WAIT 0
看到80端口是进程2404占用了
然后找进程
tasklist 或者
tasklist /fi ″PID eq 2404″
C:\Documents and Settings\cjx>tasklist /fi "PID eq 2404"
图像名 PID 会话名 会话# 内存使用
========================= ====== ================ ======== ============
Thunder5.exe 2404 Console 0 27,812 K