Introduction to the Topology structure of Nginx+Tomcat website in online Environment
The following brings you an introduction to the topology structure of the online environment Nginx+Tomcat website, hoping to give you some help in practical application. There are many things involved in load balancing, not many theories, and there are many books on the Internet. Today, we will use the accumulated experience in the industry to do an answer.
Online environment Nginx+Tomcat website topology architecture
CVM software requirements:
Mainframe
IP address
Main software
Nginx server
192.168.1.102
Nginx-1.6.0.tar.gz
Tomcat1
192.168.1.100
1.jdk-7u65-linux-x64.gz
2.apache-tomcat-7.0.54.tar.gz
Tomcat2
192.168.1.101
1.jdk-7u65-linux-x64.gz
2.apache-tomcat-7.0.54.tar.gz
Install and configure the java environment:
/ / Import the java script into the environment variable and make it effective
/ / check the installation version
4. Install and configure tomcat:
/ / decompress the file and generate apache-tomcat-7.0.54, move it to the commonly used / usr/local and rename it to tomcat7
/ / start the service and check the listening port
5. Set up the web site for java:
(1) first create a web directory (2) set up an index.jsp test page under webapp1
Enter the tomcat configuration file, / usr/local/tomcat7/conf/server.vml
(3) modify the server.xml file of tomcat: