小编典典

Tomcat为什么与端口8080一起使用,而不与80一起使用?

linux

我已经在端口8080(默认)下启动并测试了Tomcat。现在,我将连接器端口更改为80,然后重新启动了Tomcat,在最小的Debian
6.0安装中没有任何显示。现在,这里的窍门在哪里?

<Connector port="80" protocol="HTTP/1.1" 
           connectionTimeout="20000" 
           URIEncoding="UTF-8"
           redirectPort="8443" />

阅读 460

收藏
2020-06-03

共1个答案

小编典典

转到/ etc / default / tomcat6并更改#AUTHBIND=noAUTHBIND=yes

 # If you run Tomcat on port numbers that are all higher than 1023, then you
 # do not need authbind.  It is used for binding Tomcat to lower port numbers.
 # NOTE: authbind works only with IPv4.  Do not enable it when using IPv6.
 # (yes/no, default: no)
 #AUTHBIND=no
2020-06-03