window端口占用 – Lwxyz https://yun.lwxyz.cn Don't Forget To Be Awesome! Fri, 16 Jun 2023 22:20:57 +0000 zh-CN hourly 1 https://wordpress.org/?v=5.1.13 window系统 查看端口 被哪个进程占用了 https://yun.lwxyz.cn/2018/01/24/window%e7%b3%bb%e7%bb%9f-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%a2%ab%e5%93%aa%e4%b8%aa%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e4%ba%86/ https://yun.lwxyz.cn/2018/01/24/window%e7%b3%bb%e7%bb%9f-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%a2%ab%e5%93%aa%e4%b8%aa%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e4%ba%86/#respond Wed, 24 Jan 2018 00:52:05 +0000 http://blog.450823756.xyz/?p=56 阅读更多]]> 转自:http://blog.csdn.net/windcloud1986/article/details/50942973

一、在windows命令行窗口下执行:运行–cmd
C:\>netstat -aon|findstr “8080”
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

命令:taskkill -F -PID 2448

如果第二步查不到,那就开任务管理器,进程—查看—选择列—pid(进程位标识符)打个勾就可以了
看哪个进程是2448,然后杀之即可。

在安装WAMP时,也经常遇到这种问题,说是80端口被占,就把前面的8080改成80即可

]]>
https://yun.lwxyz.cn/2018/01/24/window%e7%b3%bb%e7%bb%9f-%e6%9f%a5%e7%9c%8b%e7%ab%af%e5%8f%a3-%e8%a2%ab%e5%93%aa%e4%b8%aa%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e4%ba%86/feed/ 0