Port number modification Details When multiple tomcat is deployed on the same server

Source: Internet
Author: User

There is a problem with port number collisions when deploying multiple tomcat on the same server, so you need to modify the Tomcat configuration file Server.xml, as an example of TOMCAT7.


    • First, learn about several of the main ports of the following Tomcat:



<connector port= "8080" protocol= "http/1.1" connectiontimeout= "60000" redirectport= "8443" disableUploadTimeout= " False "executor=" Tomcatthreadpool "uriencoding=" UTF-8 "/>

Where 8080 is an HTTP port and 8443 is an HTTPS port


<server port= "8005" shutdown= "Shutdown" >

8005 for remote Stop service port


<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/>

8009 is the AJP port, Apache can access the 8009 port of Tomcat over the AJP protocol.



    • Deploying multiple Tomcat primarily modifies three ports:



1.HTTP port, default 8080, change to 8081 below

<connector port= "8081" protocol= "http/1.1" connectiontimeout= "60000" redirectport= "84 "Disableuploadtimeout=" false "executor=" Tomcatthreadpool "uriencoding=" UTF-8 "/>"



2. Remote Stop service port, default 8005, change to 8006

<server port= "8006" shutdown= "shutdown";


3.AJP Port, default 8009, as modified, 8010

<connector port= "8010" protocol= "ajp/1.3" redirectport= "8443"/>


This article is from the "Lmlinux" blog, make sure to keep this source http://1121914451.blog.51cto.com/11002746/1783808

Port number modification Details When multiple tomcat is deployed on the same 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.