Windows 服务器 2016/AWS 上的 Spring Boot Web 服务器 运行 无法正常工作

Springboot webserver running on Windows Server 2016 / AWS not working

我无法从外部计算机查看我的云服务器(Windows Server 2016 OS on AWS)。

  1. 我正在使用 https://start.spring.io/
    中的默认 springboot 使用 Java 8 并打包为 Jar.
  2. 我使用"gradle bootJar"制作jar文件。
  3. 我在 AWS/EC2 上启动了一个 windows 2016 服务器。
  4. 我把文件放在云服务器上了
  5. IIS 已禁用。
  6. 我安装java8 sdk
  7. 我运行cmd中的jar文件"java -jar -Dserver.port=80 myapp.jar"
  8. 我在 AWS 中打开 HTTP 和进出服务器的所有流量。

现在在本地(RDP 到我的云计算机),我在 http://localhost:80 看到该应用程序运行良好。 但是远程(例如在工作中),我无法到达 http://"my servers public ipaddress":80.

的服务器位置

注意:运行Winsw 的应用即服务对我的问题没有帮助。

我还注意到 运行ning IIS,我可以从远程计算机看到默认的 IIS 屏幕。

确保 Windows 防火墙未阻止端口 80。