NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
teemoer
V2EX  ›  NGINX

nginx 配置 upstream backup 报错 ,求 V 友解答

  •  
  •   teemoer · Feb 6, 2017 · 6833 views
    This topic created in 3461 days ago, the information mentioned may be changed or developed.
    
    nginx是window版本
    version: nginx-1.11.9
    
    
    
    
    http {
    
        upstream backend {
        ip_hash;
    
        server 127.0.0.1:8080 max_fails=3 fail_timeout=20s;  
    
        server 127.0.0.1:8086 backup;  
        }  
       
        server {
            listen       83;
            server_name 127.0.0.1;
            location / {  
                proxy_pass http://backend;  
            }  
        }
    
    }
    
    

    启动 nginx 的时候 报错 错误信息如下:

    2017/02/06 10:55:21 [emerg] 7568#4548: 
    balancing method does not support parameter "backup" in C:\nginx-1.11.9/conf/nginx.conf:51
    
    3 replies    2017-02-06 11:21:16 +08:00
    QKgf555H87Fp0cth
        1
    QKgf555H87Fp0cth  
       Feb 6, 2017
    Ip_hash balancer does not support backup servers and weight
    teemoer
        2
    teemoer  
    OP
       Feb 6, 2017
    @likunyan 3Q == 解决了 老李
    QKgf555H87Fp0cth
        3
    QKgf555H87Fp0cth  
       Feb 6, 2017
    @teemoer No3Q(IQ EQ LQ)。开玩笑啦,最近看马云和澳洲小伙伴的新闻,新闻里说的这 3Q 。另外还有 JQ , QQ 什么的,笑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 13:50 · PVG 21:50 · LAX 06:50 · JFK 09:50
    ♥ Do have faith in what you're doing.