试错版:

待理解版:

基本解决办法:

添加max_fails=1 fail_timeout=60s

原nginx.conf文件内容如下:

    upstream risdz_server {

        server 192.168.10.211:8112;

        server 192.168.10.212:8112;

    }

修改后如下:

    upstream risdz_server {

        server 192.168.10.211:8112 max_fails=1 fail_timeout=60s;

        server 192.168.10.212:8112 max_fails=1 fail_timeout=60s;

    }