为了账号安全,请及时绑定邮箱和手机立即绑定

配置Nginx weight出错?

配置Nginx weight出错?

收到一只叮咚 2018-11-22 23:19:25
upstream www_data_cn {ip_hash;server 172.16.15.138:8180 weight=3 max_fails=3 fail_timeout=10s;server 172.16.15.138:8080 weight=1 max_fails=3 fail_timeout=10s;server 172.16.15.137:8180 weight=3 max_fails=3 fail_timeout=10s;server 172.16.15.137:8080 weight=1 max_fails=3 fail_timeout=10s;}重启nginx时 报错Restarting nginx: nginx: [emerg] invalid parameter "weight=3" in /etc/nginx/nginx.conf:72nginx: configuration file /etc/nginx/nginx.conf test failed 不设置weight 就可以通过,不知道为什么
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 2448 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信