我已经下载了官方领事图像,我正在运行它是一个nginx负载均衡器。 当我使用curl发送任何http请求时,
curl my-consul-http-endpoint:8500/v1/catalog/nodes
我得到以下回复
* Trying 172.29.225.62...
* Connected to my-consul-http-endpoint.com (172.29.225.62) port 80 (#0)
> GET /v1/session/list HTTP/1.1
> Host: my-consul-http-endoint
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 502 Bad Gateway
< Server: nginx
< Date: Tue, 19 Jul 2016 15:32:55 GMT
< Content-Type: text/html
< Content-Length: 18633
< Connection: keep-alive
< ETag: "56f72a9b-48c9"
Connection #0 to host my-consul-http-endpoint left intact
回复的建议是什么?我是否连接到领事服务器?服务器是否返回错误并且nginx负载均衡器返回了502?