Modify the Tomcat default port number _tomcat

Source: Internet
Author: User
Tags server port tomcat

Co-management System Summerside uses Tomcat's default port 8080, with the exception of 8080-port Tomcat consuming 8005,8009 and 8443 ports. If these 4 ports are already occupied, you can modify the collaborative management system to use a different port.

The modification method is as follows:

1. If you have IIS or Apache server installed on your machine and only 8080 ports are occupied:

Edit File "Install directory \tomcat\conf\server.xml" (can be opened with Notepad)

Look for "8080" (the red character identifier below), and then replace the port number set by Chengxiang (for example, 9090) and save it.

<connector port= "8080"

2. If you have Tomcat installed on the server and use the default port, you need to edit the file "install directory \tomcat\conf\server.xml" (you can open it in Notepad).

Locate and modify the 4 port numbers in turn (the red character identifier below):

<server port= "8005" shutdown= "Shutdown" >
<connector port= "8080"
<connector port= "8009" enablelookups= "false" redirectport= "8443" protocol= "ajp/1.3"/>

Make sure the modified port is not occupied. such as: modified to:

<server port= "9005" shutdown= "Shutdown" >
<connector port= "9090"
<connector port= "9009" enablelookups= "false" redirectport= "9443" protocol= "ajp/1.3"/>

Attention:
1, after modifying the port number, the current online users can no longer use the system, need to restart Tomcat, and then use the new port number to log in again.
2. Only four port modifications will be involved when Tomcat is already on the server and the Collaboration Management system (which also has Tomcat) is installed this time. If you do not have two tomcat on your server, simply change the 8080 to the port number you need, as described in the first case.


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.