[英]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.