Change port 80 of Tomcat in Ubuntu

Source: Internet
Author: User
I recently installed a new Ubuntu server with version 10.04. After installing the built-in LAMP application, I can access it through www.linuxidc.com: 8080 (linuxidc.com is my mobile phone domain name) however, when/etc/tomcat6/server is changed. & lt; Connectorport = "80" protocol = "HTTP/1.1" connectionTimeout = "20

A new Ubuntu server is installed recently, with version 10.04. Select the built-in LAMP application.

After installation, you can access it through www.linuxidc.com: 8080 (linuxidc.com is my mobile phone domain name)

However, when you change the value in/etc/tomcat6/server. xml

After port = 8080 is changed to port = 80, it is saved and restarted and cannot be accessed directly through www.linuxidc.com.

Run the netstat-ant command to check whether port 80 is enabled on the server.

After checking the information, we found that starting from ubuntu10.04, port 1024 is disabled by default.

You need to manually open tomcat. You can go to the last line of AUTHBIND = yes in/etc/default/tomcat6 to edit tomcat.

The default value is # AUTHBIND = no.

The procedure is as follows:

1. Modify sudo vi/etc/tomcat6/server. xml to port = "80"

2. Modify sudo vi/etc/default/tomcat6 to AUTHBIND = yes.

3. restart sudo/etc/init. d/tomcat6 restart

4. Run netstat-ant to check whether port 80 is enabled.

5. The mobile phone can access www.linuxidc.com normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.