Web server failed to start. Port 7002 was already in use.

问题:

重启项目,报端口被占用异常:

Web server failed to start. Port 7002 was already in use._第1张图片

解决方案:

1,打开cmd运行界面,输入netstat -ano,查看端口进程ID

 Web server failed to start. Port 7002 was already in use._第2张图片

2,然后将该ID的进程杀死,输入taskkill /F /pid PID

 Web server failed to start. Port 7002 was already in use._第3张图片

3,再重新启动项目即可。 

你可能感兴趣的:(服务器,运维)