Ubuntu将tomcat7 端口改为81:
apt-get install authbind
vi /etc/default/tomcat7
AUTHBIND=yes (默认为#AUTHBIND=no)
:wq
vi /var/lib/tomcat7/conf/server.xml (默认为8080)
<Connector port="81" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
:wq
touch /etc/authbind/byport/81
chown tomcat7:tomcat7 /etc/authbind/byport/81
chmod 0755 /etc/authbind/byport/81
service tomcat7 restart
netstat –ntpl | grep 81
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。