nginx 负载均衡
nginx.conf
http {upstream test {server 127.0.0.1:10001;server 127.0.0.1:10002;# 生产建议开ip_haship_hash;}location / {root html;proxy_pass http://test;index index.html index.htm;}
nginx.conf
http {upstream test {server 127.0.0.1:10001;server 127.0.0.1:10002;# 生产建议开ip_haship_hash;}location / {root html;proxy_pass http://test;index index.html index.htm;}