卷曲反应的意义

时间:2016-07-19 15:40:41

标签: http curl nginx consul

我已经下载了官方领事图像,我正在运行它是一个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?

1 个答案:

答案 0 :(得分:0)

部署领事客户端并使用http://localhost:8500

连接到该客户端