参考:https://www.oschina.net/question/3713632_2275297
#负载均衡案例
upstream backServer{
server 127.0.0.1:8080 weight=1;
server 127.0.0.1:8081 weight=1;
}
server {
listen 80;
server_name www.cl.com;
location / {
### 指定上游服务器负载均衡服务器
proxy_pass http://backServer;
index index.html index.htm;
}
}
结论,每次刷新页面时使用ctrl+F5强制刷新。本人浏览器使用Chrome