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.