端口被占用排坑

报错信息

Description:
Web server failed to start. Port 8888 was already in use.
Action:
Identify and stop the process that’s listening on port 8888 or configure this application to listen on another port.

说人话

Web服务器无法启动。8888端口已在使用中。
行动:
识别并停止正在端口8888上侦听的进程,或将此应用程序配置为在另一个端口上侦听。

解决
这明显就是端口被占用的问题
学习一下 netstat 命令

显示所有连接
-a 选项会列出 tcp, udp 和 unix 协议下所有套接字的所有连接

netstat -a

查询端口信息

tasklist|findstr 查询端口
netstat -aon|findstr 查询端口

按pid关闭进程

taskkill /pid XXX

强行终止进程

taskkill /f /pid XXX

找到你的问题端口,关闭就可以了


猜你喜欢

转载自blog.csdn.net/m0_53321320/article/details/124154882