Please see the tutorial video for detailed steps: video address
The following are installation tutorials and key codes and other materials:
Explain the legend:
1. Environment installation
JDK1.8 installation tutorial : Tutorial address
Tomcat8.5 Get link:
Link: https://pan.baidu.com/s/18XqIcrehbdcs_s9lCG_xrA
Extraction code: s10l
Nginx installation tutorial: Tutorial address
2. Key code
The nginx.conf code of the 192.168.2.128 machine:
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream test {
server 192.168.2.128:8080;
server 101.132.143.220:8080;
server 192.168.2.129:8080;
}
server {
listen 80;
server_name 192.168.2.128;
location / {
proxy_pass http://test;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
PS: When testing the Nginx polling effect, if you click the browser refresh button to refresh the page and there is no response, you can press and hold ctrl and click the refresh button to force a refresh. This problem occurs because of the cache.