为什么Tomcat使用端口8080而不是80? [英] Why does Tomcat work with port 8080 but not 80?

查看:1456
本文介绍了为什么Tomcat使用端口8080而不是80?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have started and tested Tomcat under Port 8080 (default). Now I altered the connector port to 80 and restarted Tomcat, nothing will show on my minimal Debian 6.0 installation. Now where is the trick here?

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


推荐答案

转到/ etc / default / tomcat6并更改#AUTHBIND =没有 AUTHBIND =是

go to /etc/default/tomcat6 and change #AUTHBIND=no to AUTHBIND=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

这篇关于为什么Tomcat使用端口8080而不是80?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆