Modify the default port 8080 of Tomcat 6 in Ubuntu

Source: Internet
Author: User
Modify the default port 8080 of Tomcat 6 in Ubuntu: $ sudovi/etc/Tomcat6/server. xml will & lt; Connectorport = "8080" protocol = "HTTP/1.1" connectionTimeout = "20000" URIEncoding = "UTF-8" redirectPort = "8443"/& gt; change to & lt; Connecto

Modify the default port 8080 of Tomcat 6 in Ubuntu:

$ Sudo vi/etc/tomcat6/server. xml

Set
Change
Run the following command to restart the Tomcat 6 service:
$ Sudo service tomcat6 restart

If the new port number is smaller than 1024, such as port 80, You need to modify some other configurations:
$ Sudo vi/etc/default/tomcat6
Change AUTHBIND = no to AUTHBIND = yes

To check whether the modified port is normal, run the following command:
$ Netstat-ant

Related Article

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.