nginx负载均衡:轮询,权重,hash
nginx负载均衡:轮询,权重,hash,
upstream net6webapi {
server localhost:9002 weight-1; # 权重1份:http://localhst:9002
server localhost:9002 weight-2;
server localhost:9002 weight-3;
}
server {
listen 9006; # 反向代码的访问地址:http://localhst:9006
server_name localhost;
localhost / {
proxy_pass http://net6webapi;
}
}