Modify the default Tomcat Port

Source: Internet
Author: User
Find the server. xml file in the conf subdirectory under the tomcat installation directory and find the following information:

<Connector classname = "org. Apache. Coyote. tomcat5.coyoteconnector"
Port = "8080" minprocessors = "5" maxprocessors = "100"
Enablelookups = "true" redirectport = "8443" acceptcount = "100"
DEBUG = "0" connectiontimeout = "20000"
Disableuploadtimeout = "true"/>

Modify it:

<Connector classname = "org. Apache. Coyote. tomcat5.coyoteconnector"
Port = "80" minprocessors = "5" maxprocessors = "100"
Enablelookups = "true" redirectport = "8443" acceptcount = "100"
DEBUG = "0" connectiontimeout = "20000"
Disableuploadtimeout = "true"/>

Port 80 is the default port of the HTTP protocol, if you do not select 80 for the default port, then the customer must add the port number after the access address, in: http://www.zhihuigu.com: 8080/So, this is very troublesome.

After modification! Yes

(1) Stop the IIS web service because it occupies port 80 by default!

(2) restart the Tomcat server.

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.