Deployment of Linux Tomcat and its load balancing

Source: Internet
Author: User

deployment of Linux Tomcat and its load balancing

a , Case

650) this.width=650; "style=" Float:none; "title=" Picture 1.png "src=" https://s3.51cto.com/wyfs02/M02/9A/13/ Wkiol1lq-dxwxp2_aab4vhdwwo8513.png "alt=" Wkiol1lq-dxwxp2_aab4vhdwwo8513.png "/>

Case requirements

1,   1.10 and 1.20 tomcat service, and create java web site. On this computer, verify that you can access the created web sites such as http : //192.168.1.10:8080/index.jsp

2. in the 1.100 to deploy nginx services on the host , modify the main configuration file, implement Nginx as the front end,Tomcat The ability to load-balance the backend.

3. The client host accesses the nginx Server to verify that load balancing is possible.

Second, Start Deployment

1. Environment configuration (using VMware emulation server)

Operating System: Centos 6.5 main software: apache-tomcat-7.0.54.tar.gz jdk-7u65-linux-x64.gz nginx-1.6.2.tar.gz

650) this.width=650; "style=" Float:none; "title=" Picture 2.png "src=" https://s3.51cto.com/wyfs02/M02/9A/13/ Wkiol1lq-dxxqhhwaadukw26efk332.png "alt=" Wkiol1lq-dxxqhhwaadukw26efk332.png "/>

other IP configurations are the same .

2. Experimental steps:

in the1.10and the1.20on separate deploymentTomcatservices, and createJavaof theWebsite. On this computer, verify that you have access to the createdWebsites, such ashttp://192.168.1.10:8080/index.jsp )

650) this.width=650; "style=" Float:none; "title=" Picture 3.png "src=" https://s5.51cto.com/wyfs02/M00/9A/13/ Wkiom1lq-dbstwekaagtmyj7o-4712.png "alt=" Wkiom1lq-dbstwekaagtmyj7o-4712.png "/>

Add a bin/subdirectory under the Java root directory in the PATH environment variable

650) this.width=650; "style=" Float:none; "title=" Picture 4.png "src=" https://s5.51cto.com/wyfs02/M00/9A/13/ Wkiol1lq-dfbyb0baaef4bmd8f4595.png "alt=" Wkiol1lq-dfbyb0baaef4bmd8f4595.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 5.png "src=" https://s1.51cto.com/wyfs02/M01/9A/13/ Wkiom1lq-djdrbq0aahunwwz41a631.png "alt=" Wkiom1lq-djdrbq0aahunwwz41a631.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 6.png "src=" https://s1.51cto.com/wyfs02/M01/9A/13/ Wkiol1lq-didkvzoaaeoauqjtgw323.png "alt=" Wkiol1lq-didkvzoaaeoauqjtgw323.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 7.png "src=" https://s2.51cto.com/wyfs02/M00/9A/13/ Wkiom1lq-dmsayquaaig4jev97o767.png "alt=" Wkiom1lq-dmsayquaaig4jev97o767.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 8.png "src=" https://s2.51cto.com/wyfs02/M02/9A/13/wKiom1lQ-DrD_ Vbpaaa6fh0fnfy638.png "alt=" Wkiom1lq-drd_vbpaaa6fh0fnfy638.png "/>

1.20 the tomcat configuration steps above.

in the 1.100 to deploy nginx services on the host , modify the main configuration file, implement Nginx as the front end,Tomcat The ability to load-balance the backend.

650) this.width=650; "style=" Float:none; "title=" Picture 9.png "src=" https://s3.51cto.com/wyfs02/M02/9A/13/ Wkiol1lq-dutfu72aafrb5hlnfm182.png "alt=" Wkiol1lq-dutfu72aafrb5hlnfm182.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 10.png "src=" https://s3.51cto.com/wyfs02/M00/9A/13/ Wkiol1lq-dutuph8aafpr6jpsns083.png "alt=" Wkiol1lq-dutuph8aafpr6jpsns083.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 11.png "src=" https://s2.51cto.com/wyfs02/M00/9A/13/ Wkiom1lq-dyynnkvaajeonohpb0430.png "alt=" Wkiom1lq-dyynnkvaajeonohpb0430.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 12.png "src=" https://s4.51cto.com/wyfs02/M01/9A/13/ Wkiom1lq-d3yqyx1aacsfotwo24375.png "alt=" Wkiom1lq-d3yqyx1aacsfotwo24375.png "/>

650) this.width=650; "style=" Float:none; "title=" Picture 13.png "src=" https://s4.51cto.com/wyfs02/M01/9A/13/ Wkiol1lq-d3qj-lbaadjt-mqd6c395.png "alt=" Wkiol1lq-d3qj-lbaadjt-mqd6c395.png "/>

Verify: The client host accesses the nginx Server to verify that load balancing is possible.

650) this.width=650; "style=" Float:none; "title=" Picture 14.png "src=" https://s5.51cto.com/wyfs02/M00/9A/13/ Wkiol1lq-d7gxqfqaacuyk9pmim456.png "alt=" Wkiol1lq-d7gxqfqaacuyk9pmim456.png "/>

Shortcomings, please advise!!!

Deployment of Linux Tomcat and its load balancing

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.