[英]The Tomcat connector configured to listen on port 80 failed to start
我運行webapp https://github.com/donhuvy/mycustomer我遇到錯誤
描述:
配置為偵聽端口80的Tomcat連接器無法啟動。 該端口可能已在使用中,或者連接器配置錯誤。
行動:
驗證連接器的配置,識別並停止正在偵聽端口80的任何進程,或將該應用程序配置為偵聽另一個端口。
這是我的日志https://gist.github.com/donhuvy/93210850f955f9ddbc00ab735a0ade18#file-terminal-log-L191
我已經通過命令檢查了端口80
sudo lsof -i TCP:80 | grep LISTEN
但是結果什么都沒有。 如何解決? (我使用macOS 10.12.5)
更新:
運行Sencha客戶端(在目錄client
端內部)
sencha web -port 8082 start
我將Spring Boot端口更改為8082:
APPLICATION FAILED TO START
Description:
The Tomcat connector configured to listen on port 8082 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 8082, or configure this application to listen on another port.
在Linux上,只能由root用戶打開低於1024的端口,因此默認情況下限制端口80
如果要在80端口上發布應用,則需要將請求從80端口重定向到要運行springapp(例如8080)端口的端口
您可以使用默認情況下允許在默認端口80上使用的apache2服務器,並且可以將請求轉發給tomcat
80端口已被另一個應用程序使用。 更改tomcat的帖子編號。 並且您不能直接在80帖子上運行tomcat,您需要安裝authbind,作為參考,您可以點擊以下鏈接:-
以下作品:
apt-get安裝authbind
首先,在/ etc / default / tomcat7文件中設置AUTHBIND = yes
sudo touch /etc/authbind/byport/80
sudo chmod 500 /etc/authbind/byport/80
sudo chown tomcat7 /etc/authbind/byport/80
參考: http : //georgik.sinusgear.com/2012/03/10/tomcat-7-listen-on-port-80-linux-debian/comment-page-1/
和
http://2ality.com/2010/07/running-tomcat-on-port-80-in-user.html
如果您使用配置的端口80啟動SpringBoot應用程序,則可能有2個問題:
需要以root權限執行命令。 只需在啟動命令之前添加“ sudo”。 這對我有幫助。
端口正在被另一個應用程序使用。 要檢查它,可以使用命令:“ netstat -l”;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.