linux检查端口占用情况


linux检查端口占用情况
 
netstat -pant | grep 80 
netstat -nat|grep -i "8080"|wc -l 总数 
 
windows: 
 
假如我们需要确定谁占用了我们的80端口 
 
1、Windows平台
在windows命令行窗口下执行:
C:\>netstat -aon|findstr "80" 
TCP    127.0.0.1:80        0.0.0.0:0              LISTENING      2448 
 
看到了吗,端口被进程号为2448的进程占用,继续执行下面命令: 
 
C:\>tasklist|findstr "2448" 
thread.exe                    2016 Console                0    16,064 K 
很清楚吧,thread占用了你的端口,Kill it 
 

相关内容

    暂无相关文章