Install Multiple Tomcat servers on a Windows/Ubuntu server at the same time

Source: Internet
Author: User

1. Windows

This section describes how to run two Tomcat services of the same version on one machine, and how to install multiple Tomcat services.

Install two Tomcat servers on Windows XP. Download one installation version and one non-installation package on the main interface.

Http://tomcat.apache.org/

 

First install a tomcat version. After installation, start localhost: 8080. The installation is successful if you see the following interface:

 

Then write a script installservice. bat with the following content:

Set java_home = C:/program files/Java/jdk1.6.0 _ 24

Set catalina_home = D:/program files/Apache-Tomcat-7.0.29

"D:/program files/Apache-Tomcat-7.0.29/bin/service. Bat" Install mytomcat6

Note that all the above paths should follow your actual JDK installation path and the unzipping path of your Tomcat non-installation version. Save and run the bat script.

Mytomcat6 is just a service alias. Any one can be repeated.

 

 

It indicates that the installation is successful. Open your service management and check that two Tomcat registration services are available, but their names are different.

 

 

If you need to run more than two servers, repeat the steps above for non-installed versions. Make sure that the port numbers of scripts in CONF/server. XML are not the same.

 

 

2. Ubuntu version

This is even simpler. Download The tar.gz Linux version on the atat network, decompress multiple copies, modify the port numbers in CONF/server. XML to different versions, and then start the/bin/start. Sh script.

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.