# 负载均衡配置
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;
}
}
2024-02-04 19:55:22
# 负载均衡配置
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;
}
}