weixin_39805539
weixin_39805539
2020-11-28 21:52

求救 。。nginx: [emerg] unknown directive "upsync" nginx 1.9.2运行不了。。模块安装了

[root conf.d]# /usr/local/nginx/sbin/nginx -V nginx version: nginx/1.9.2 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) configure arguments: --add-module=/home/fulndon/soft/nginx/nginx_upstream_check_module --add-module=/home/fulndon/soft/nginx/nginx-upsync-module [root conf.d]#

conf upstream zuul_server { server 127.0.0.1:11111; upsync 192.168.56.128:8500/v1/kv/upstreams/zuul?keys=true upsync_timeout=6m upsync_interval=500ms upsync_type=consul strong_dependency=off; upsync_dump_path /usr/local/nginx/conf/server/zuul_servers.conf; check interval=1000 rise=2 fall=2 timeout=3000 type=http default_down=false; check_http_send "HEAD / HTTP/1.0\r\n\r\n"; check_http_expect_alive http_2xx http_3xx; } server{ listen 18050; proxy_pass zuul_server; location /nstatus { check_status; access_log off; } } ~

该提问来源于开源项目:weibocom/nginx-upsync-module

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

7条回答

为你推荐

换一换