1. 程式人生 > >端口占用問題的解決辦法

端口占用問題的解決辦法

早上到公司啟動專案時候發現埠被佔用  報錯如下:


***************************

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.


Action:


Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.


解決辦法:

1.開啟cmd命令視窗  輸入如下指令檢視所有埠和PID


2.找到對應的埠對應的PID  輸入指令 tasklist | findstr "8204" 找到對應的程序


3.殺掉該程序  taskkill /f /t /im javaw.exe 再次啟動就OK啦