springboot專案啟動----8080埠被佔用排雷經過
阿新 • • 發佈:2020-08-10
springboot專案,專案正常啟動訪問8080埠;前幾次都是正常的,今天突入再次執行時突然提示我說8080埠被佔用了,這我就不服了,然就就去排查哪裡出的問題。
1.問題報錯現象:
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 port8080, or configure this application to listen on another port.
2.正式開始了排查之路:
cmd命令進入doc視窗:
2.1輸入netstat -nao檢視目前使用中的埠資訊
2.2 再次輸入命令:tasklist|findstr "13932"
發現java.exe佔用著8080埠.結束程序,然後再次啟動springboot專案
專案再次啟動失敗,提示8080埠被佔用,好吧,再次排查,
然後在工作管理員中把java程序關閉之後,發現後臺程序中還有一個java的程序,把後臺程序也關閉之後,再次啟動專案,好了,沒有報錯了,這次的鍋就是它了。