Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS

后端 未结 4 1692
故里飘歌
故里飘歌 2021-01-30 04:15

I\'ve got a problem with my tomcat7 installation on a newly updated Ubuntu system. Ever since the update to 14.04 LTS, tomcat refuses to start on port 80 with an error that I ca

4条回答
  •  有刺的猬
    2021-01-30 04:43

    I had the same problem. In the end, I used an iptables port redirect instead of the authpriv mechanism

    i.e.

    1) in /etc/default/tomcat7, set authpriv=no

    2) in /etc/tomcat7/server.xml, use

     rather than 80

    3) ufw allow 8080/tcp

    4) follow the instructions here: https://serverfault.com/questions/238563/can-i-use-ufw-to-setup-a-port-forward

    The same can be done for port 443 (SSL) if necessary

提交回复
热议问题