Javaweb Deploying multiple projects (replicated projects)

Source: Internet
Author: User
Tags server port

There is a recent need to deploy two compiled Javaweb projects on a single server, but as with the project name, only modifying the name of the folder does not allow two projects to coexist, and finally only the method of deploying multiple Tomcat servers can be considered. Search finally found a good method, the implementation of the time is also the cost of trouble, anyway, the main JDK version of the problem and the configuration of environment variables, and then to be careful. Here are the methods found on the Internet to configure the two Tomcat server, reproduced here.

For reasons of work, multiple Tomcat needs to be configured on one server. On the internet to find a lot of information, found in their own machine can not be used. When the first Tomcat is started, the ports in the server.xml behind Tomcat will still newspapers the port regardless of how they are changed. Later running in DOS only to find that all Tomcat will find Catalina_home and catalina_base These two environment variables, so the steps are as follows:
1. Tomcat using a compressed version cannot be used with the installation version.
2. The configuration of the first Tomcat does not change.
3. Add the environment variable catalina_home2, which is the new Tomcat address, add the environment variable CATALINA_BASE2, and the value is the new Tomcat address.
4. Modify the Startup.bat in the new Tomcat to change the catalina_home to Catalina_home2.
5. Modify the Catalina.bat in the new Tomcat and change the catalina_home to Catalina_home2,catalina_base to Catalina_base2.
6. Modify the Conf/server.xml file:
6.1 <server port= "8005" shutdown= "shutdown" > change the port to a port that is not used.
6.2 <connector port= "8080" maxhttpheadersize= "8192"
maxthreads= "minsparethreads=" maxsparethreads= "75"
Enablelookups= "false" redirectport= "8443" acceptcount= "100"
connectiontimeout= "20000" disableuploadtimeout= "true"/> Change the port to a port that is not used.
6.3<connector port= "8009"
Enablelookups= "false" redirectport= "8443" protocol= "ajp/1.3"/> To change the port to a port that is not used.
Success!

2015.2.17 Pro-Test effective

Transferred from: http://www.cnblogs.com/littlehb/archive/2012/02/07/2341413.html

Javaweb Deploying multiple projects (replicated projects)

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.