我在尝试使用 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