【发布时间】:2021-06-22 16:54:02
【问题描述】:
我在将我的第一个 python django 应用程序部署到 AWS Elastic Beanstalk 时遇到问题。该应用程序似乎可以正确上传,但是当我尝试使用它时,我得到 502 Bad Gateway。
日志显示以下内容: *2021/03/25 20:14:53 [错误] 5144#0: 357 connect() 在连接到上游时失败(111:连接被拒绝),客户端:172.31.8.43,服务器:,请求:“GET / HTTP/1.1”,上游:“http://127.0.0.1:8000/”,主机:“crap-env.eba-2nhwp4ty.us-west-2.elasticbeanstalk.com”
不胜感激。
【问题讨论】:
-
你能通过 ssh 连接到数据库实例并确认它实际上是由
curl从内部运行的吗?
标签: django amazon-web-services amazon-elastic-beanstalk