【发布时间】:2019-03-25 13:03:09
【问题描述】:
我收到了这条消息
connect() failed (111: Connection refused
这是我的日志:
-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2018/10/21 06:16:33 [error] 4282#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.4.119, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8081/", host: "hackingdeal-env.qnyexn72ga.ap-northeast-2.elasticbeanstalk.com"
2018/10/21 06:16:33 [error] 4282#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.4.119, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8081/favicon.ico", host: "hackingdeal-env.qnyexn72ga.ap-northeast-2.elasticbeanstalk.com", referrer: "http://hackingdeal-env.qnyexn72ga.ap-northeast-2.elasticbeanstalk.com/"
我正在使用 nodejs/express Elastic Beanstalk 环境。
我有一个 nginx 相关文件
.ebextensions/nginx/conf.d/proxy.conf
上层文件包含:
client_max_body_size 50M;
每当我尝试获取我的网页时,我都会收到 502 bad gateway。
我的应用有什么问题?
【问题讨论】:
-
确保您的快速应用程序已启动并运行
标签: node.js amazon-web-services express nginx amazon-elastic-beanstalk