Several ports (8005, 8080, 8009) required,80058009

來源:互聯網
上載者:User

Several ports (8005, 8080, 8009) required,80058009

有時候會碰到tomcat死機,重啟eclipse之後再次啟動tomcat服務,

發現報錯Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use。

根據字面意思,連接埠8005, 8080, 8009被佔用了。

解決方案:
方法1:殺掉佔用連接埠的軟體。

開啟工作管理員,找到java虛擬機器相關的進程javaw.exe,將它結束掉。如果問題沒有解決,往下看。

在dos下(管理員模式):

  1,netstat   -ano|findstr  8080 

  //說明:查看佔用8080連接埠的進程

  

  2,taskkill  /pid  6856  /f 

  //說明,運行windows內建taskkill命令,將上面顯示的進程號,結束掉。

  

方法2:修改tomcat預設連接埠號碼。

修改Tomcat的設定檔。(C:/tomcat5.5.25/conf/server.xml)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.