Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already in use.


Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

 

eclipse運行web時出現上述報錯,這是由於你已經在外面通過starup.bat打開了tomcat,而在eclipse中運行時會再一次通過server打開Tomcat,這就造成了上面端口被占用的發中生,解決方法就是找到Tomcat的文件夾下bin文件夾然后雙擊shutdown.bat關閉Tomcat后再在eclipse中運行即可。

cmd 輸入 netstat -ano 展示端口號

 


免責聲明!

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



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