1. 首先找到端口被哪个进程占用
C:\>netstat -aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
看到了吗,端口被进程号为2448的进程占用,继续执行下面命令:
2. 根据进程序列号找到该进程
C:\>tasklist|findstr "2448"
thread.exe 2016 Console 0 16,064 K
thread.ext 占用了你的端口,Kill it
netstat -anb
可以看到端口和占用端口的应用程序,所用时间比较长