开始-执行-cmd,进netstat -ano你可以看到整个port入住。
增加要想知道谁占用了我们的port8080,输入下面命令
C:Documents and SettingsAdministrator>netstat -aon|findstr "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1596
port被进程号为1596的程序占用
继续运行下面命令
C: asklist|findstr "1596"
thread.exe 2016Console 0 16064k
非常清楚thread.exe占用了我们的port,kill it
假设第二步骤无法找到,打开任务管理器,直接找到进程号1596他将能够以关闭。
版权声明:本文博主原创文章,博客,未经同意不得转载。