日期:2014-05-17  浏览次数:20738 次

windows下查看某端口被哪个程序占用
在命令行下是这样的
比如要查看80端口被哪个程序占用了,windows命令行窗口下执行:运行--cmd
C:\>netstat -aon|findstr "80" ,输出
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
端口被进程号为2448的进程占用,继续执行下面命令:
C:\>tasklist|findstr "2448" 
httpd.exe 2016 Console 0 16,064 K

表示httpd.exe程序占用了端口80