Port 8009 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port.


  今天啟動web項目時報錯“Port 8009 required by Tomcat v8.0 Server at localhost is 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).”

  

  問題分析:端口 8080, 8009被占用了。可能是在打開Tomcat的情況下關閉了Eclipse,或是Eclipse非正常關閉,導致先前的Tomcat沒有被關閉,端口占用,又或是其他軟件占用了tomcat的端口號。

  解決辦法:殺掉占用端口的軟件。

  步驟:

  1.右鍵“開始”,點擊“運行”。

   

  2.輸入“cmd”

  

  3.輸入"netstat -ano"命令,可以查看哪個進程占用了8080和8009端口,找到占用端口軟件的PID,然后在任務管理器找到對應PID的軟件,關閉結束該進程即可。如果任務管理器中沒有顯示PID列,需要設置,查看---》選擇列---》勾選“PID(進程標識符)”。 

   

  

   在任務管理器中找的12568對應的進程,結束該進程后重啟Eclipse中Tomcat即可。

  


免責聲明!

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



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