小编Ars*_*rma的帖子

AWS Elastic Beanstalk [错误] 2540#0:*1 连接到上游时 connect() 失败(111:连接被拒绝)

我在尝试使用 AWS Elastic Beanstalk 连接到我的 Django 代码时收到此错误:

[error] 2540#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.23.63, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.14.130"
Run Code Online (Sandbox Code Playgroud)

我的日志显示如下:

----------------------------------------
/var/log/nginx/error.log
----------------------------------------
2020/12/21 03:43:19 [error] 2540#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.23.63, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "172.31.14.130"
2020/12/21 03:43:22 [error] 2540#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.14.160, server: , request: …
Run Code Online (Sandbox Code Playgroud)

mysql django nginx amazon-web-services amazon-elastic-beanstalk

6
推荐指数
1
解决办法
1959
查看次数