1.修改nginx配置文件
cd /usr/local/nginx/conf
... http { upstream myproject { server 192.168.1.7 weight 2; server 192.168.1.8; } server { listen 8080; location / { proxy_pass http://myproject; } } }
1.修改nginx配置文件
cd /usr/local/nginx/conf
... http { upstream myproject { server 192.168.1.7 weight 2; server 192.168.1.8; } server { listen 8080; location / { proxy_pass http://myproject; } } }
转载于:https://www.cnblogs.com/sunbey/p/8529152.html