【发布时间】:2019-04-13 16:17:26
【问题描述】:
我是初学者,我已经在端口 8080 上的 aws 实例上启动了我的 Spring Boot 应用程序(使用 jar 文件)。但我无法通过显示“此站点可以”的浏览器 (PublicDNS:8080) 访问它无法联系 - 响应时间过长”。
我已允许从任何地方到我的服务器和端口 8080 的所有 http 和 https 流量。请帮助。
我的 AMI 中的 $curl http://localhost:8080 给出 StatusCode : 200。但是我本地机器中的 curl http://PublicDNS 给出了
curl : Unable to connect to the remote server
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation:
(System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
我在下面附上了我的安全组入站规则的屏幕截图
提前谢谢你!
【问题讨论】:
标签: amazon-web-services spring-boot amazon-ec2