SpringBoot啟動報端口已被占用--解決


問題

啟動SpringBoot項目后發現啟動失敗,控制台輸出以下內容
Description: The Tomcat connector configured to listen on port 8100 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 8100, or configure this application to listen on another port.'
在這里插入圖片描述
端口號已被占用

查找占用端口的進程

打開命令窗口,輸入netstat -ano| 8100,查看占用端口的進程的pid
在這里插入圖片描述
這里是3184,因此將進程殺死就可以了。

殺死進程

Windows 下殺指定進程taskkill -F /pid 3184
在這里插入圖片描述
再次啟動,運行成功。或者不用殺掉進程,替換這個端口也行!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM