posts
win查看所有端口和PID
应用启动失败时端口被占用的排查:netstat 查端口 PID、taskkill 杀进程。
控制台最后会显示Application启动失败,如下:
...
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
...
- 打开cmd命令窗口 输入如下指令查看所有端口和PID
netstat -ano
2. 找到对应的端口对应的PID ,输入指令找到对应的进程
tasklist | findstr "4044"
3.杀掉该进程,再次启动就OK啦
taskkill /f /t /im java.exe