Get the App
SLTechnology News&Howtos  ›  Servers  › 

Introduction to the Topology structure of Nginx+Tomcat website in online Environment

Shulou Source: shulou.com Published: 2022-06-03 07:04:33 09月21日 Update

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:

Tags: Services configuration environment files equalization servers directories topologies architectures websites hosts programs agents testing expertise industry engineering engineers applications technology Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux vpn macOS Huawei Redmi