【发布时间】:2023-04-04 06:16:01
【问题描述】:
我使用本教程 https://aws.amazon.com/pt/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/ 部署了我的 Spring Boot 应用程序,使用环境变量将服务器端口门设置为 5000,它工作正常。 但是后来一段时间没有任何请求,当我尝试发布我们的获取一些资源时,我出现超时错误:
2017/08/26 02:19:24 [错误] 12955#0: *15 connect() 在连接上游时失败(111:连接被拒绝),客户端:172.31.2.223,服务器:,请求:“GET /api/motoristas HTTP/1.1”,上游:“http://127.0.0.1:5000/api/motoristas”,主机:“vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com”
如果我尝试访问 api 文档链接,它可以正常工作:http://vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com/swagger-ui.html
发生了什么?
【问题讨论】:
标签: amazon-web-services spring-boot amazon-ec2 amazon-elastic-beanstalk