Windows Tomcat+nginx Cluster Mini Edition

Source: Internet
Author: User

I. Preparation

Two Tomcat plus Nginx

2. Create a public folder for the deployment project

3. Tomcat Configuration

Catalina.bat first row increased in configuration

Set java_opts=-xms512m-xmx1024m-xx:permsize=256m-xx:maxnewsize=512m-xx:maxpermsize=512m

4. Write a index.jsp page on the tomcat/webapps/test/index.jsp

5. Start apache-tomcat-6.0.1

  

View results:

  

6. Modify the port number of the second Tomcat, open the Conf/server.xml, and set the port number to 8081

Start apache-tomcat-6.0.2

  

7. Configure Conf/server.xml to configure the project as a Tomcat default project

  

8. Configure Nginx

9. Start Nginx, refresh the page, you can see the request on two server-side switch

  

  

Windows Tomcat+nginx Cluster Mini Edition

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.