nginx 负载均衡的配置方式: nginx.conf upstream webservers{ server 192.168.100.128:8080; server 192.168.100.129:8080; } server{ listen 80; server_name localhost; location /api/ { proxy_pass http://webservers/admin/; #负载均衡 } } nginx 负载均衡策略: