How to start multiple Tomcat servers in Linux at the same time

Source: Internet
Author: User
Article Title: How to start multiple Tomcat servers at the same time in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The Tomcat servers used are both zip and non-installed. Take two examples:

After installing the second Tomcat, go to the conf subdirectory under the installation directory to open the server. xml file and find the following three places:

(1) modify the http access port (default: port 8080)

MinProcessors = "5" maxProcessors = "75"

EnableLookups = "true" redirectPort = "8443"

AcceptCount = "100" debug = "0" connectionTimeout = "20000"

UseURIValidationHack = "false" disableUploadTimeout = "true"/>

(About 86 lines) Change 8080 to the port number that is not used by the First tomcat. The port number is used to access the web.

(2) modify the Shutdown port (default: Port 8005)

(About 13 rows) Change 8005 to a port number that is not in use, for example, 8095

(3) Modify port 8009

<Connector className = "org. apache. coyote. tomcat4.CoyoteConnector"

Port = "8009" minProcessors = "5" maxProcessors = "75"

EnableLookups = "true" redirectPort = "8443"

AcceptCount = "10" debug = "0" connectionTimeout = "20000"

UseURIValidationHack = "false"

ProtocolHandlerClassName = "org. apache. jk. server. JkCoyoteHandler"/>

(About 107 rows) Change 8009 to a port number that is not in use, such as 8099

So there is no problem.

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.