Tomcat multi-application configuration under Linux

Source: Internet
Author: User

After the TOMCAT installation itself provides a server, the port configuration defaults to 8080, the corresponding directory is: \TOMCAT7.0\WEBAPPS;TOMCAT 7.0 configures multiple ports, which in fact adds several servers to Tomcat and sets the corresponding directories. The following is an example of adding a port number:

1. Modify server.xml[. \tomcat 6.0\conf],

Enter the command:

Vi/data/apache-tomcat-7.0.34/conf/server.xml, go to the edit page of the Server.xml file

Create a new port number than the service above, pay attention to modify ServiceName, Engine name, appbase three places,
Of course, the port number do not forget to modify, so as not to repeat, such as:

Press ESC to exit when the configuration is complete: QW.

2. Create the appropriate deployment directory

.. \tomcat 7.0\WEBAPPS1

Copy the folders under Tomcat 7.0\webapps to the new deployment directory WEBAPPS1, modeled WebApps

3. Creating the profile directory and configuration file

Create profile directory Catalina1 specific directory reference Catalina, with Catalina Peers,

\tomcat 7.0\conf\catalina1\localhost

Host-manager.xml

Manager.xml

4. Deployment Run

Put the war in Tomcat's WebApps file directory, enter the Xshell command line CD//data/apache-tomcat-7.0.34/bin into the bin directory, enter the./starup.sh to start Tomcat.





Tomcat multi-application configuration under Linux

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.