ngnix 负载均衡配置
作者:互联网
# 负载均衡配置
upstream localser{
server localhost:8888 weight=1; # weight 权重,越小几率越大
server localhost:9999 weight=1; # weight 权重,越小几率越大
}
server {
listen 80;
server_name localhost;
location / {
# root html;
proxy_pass http://localser;
}
}
标签:负载,weight,ngnix,server,越小,均衡,localser,localhost 来源: https://blog.csdn.net/m0_37981386/article/details/117749594