How to change the port of Tomcat from 8080 to 80?

后端 未结 13 799
野的像风
野的像风 2020-11-22 17:22

I want to execute my web app as http://localhost.

13条回答
  •  天涯浪人
    2020-11-22 18:01

    On Ubuntu and Debian systems, there are several steps needed:

    1. In server.xml, change the line to have port="80".

    2. Install the recommended (not required) authbind package, with a command like:

      sudo apt-get install authbind

    3. Enable authbind in the server.xml file (in either /etc/tomcat6 or /etc/tomcat7) by uncommenting and setting the line like:

      AUTHBIND=yes

    All three steps are needed.

提交回复
热议问题