【发布时间】:2021-08-10 00:51:19
【问题描述】:
在我通过 EB 配置控制台添加负载平衡器之前,我的环境已启动并运行。现在我收到 502 bad gateway 错误。为什么会发生这种情况,我该如何解决?
我通过转到 EB 控制台 -> 配置添加了负载均衡器。我将环境类型从单实例更改为负载平衡。
我的 nginx 错误日志是:
2021/08/09 02:07:30 [error] 3534#3534: *124 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xx.xx.xx, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5000/", host: "myapplication-env.eba-2hp9xpc6.us-east-1.elasticbeanstalk.com"
【问题讨论】:
-
您的目标群体的健康检查状态如何,您也试过这个aws.amazon.com/premiumsupport/knowledge-center/…
标签: amazon-web-services amazon-elastic-beanstalk