nginx负载均衡配置
# nginx 负载均衡配置 轮询(默认) 每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服务器 down 掉,能自动剔除。 upstream my_server { server 192.168.0.2:8080; server 192.168.0.3:8080; } server { listen 80; server_name 192.168.0.1; # Path to the root of your installation location / { proxy_pass...
more...