eclipse中運行項目報錯 :Tomcat“the server cannot be started because one or more of the ports are invalid”


   eclipse中使用Tomcat運行java文件時,出現“the server cannot be started because one or more of the ports are invalid. open the server editor and correct the invalid ports.”

 

報錯譯文:服務器無法啟動,因為一個或多個端口無效。打開服務器編輯器並糾正無效端口。

出現這個問題原因是我們剛剛安裝好Tomcat時並沒有在瀏覽器中配置Tomcat的端口。

打開eclipse。
點擊windows->show views->Others

 

雙擊Servers

 

 

 

 

 

 

 

保存后,再次運行即可。

 


免責聲明!

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



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