ec2不接受入站流量

时间:2018-11-19 12:04:08

标签: amazon-web-services nginx amazon-ec2

因此,我经历了多个SO线程,但我无法做到。

我启动了一个ec2实例并为其安装了ubuntu18.04。我在上面安装了nginx。

现在,我正在尝试通过浏览器浏览服务器IP,但它显示it can't be reached。我在外壳上尝试了wget localhost,并下载了内容为If you see this page, the nginx web server is successfully installed and working. Further configuration is required.的文件,这意味着nginx可以正常工作。

现在,我编辑了与实例关联的Security group配置,如下所示:-

入站设置

enter image description here

出站设置

enter image description here

但是,它仍然无法正常工作。我想念什么?

1 个答案:

答案 0 :(得分:0)

  • 能否请检查您实例上的内部防火墙是否已启用。如果没有尝试禁用它,请参阅。

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04

  • 第二,您是否在EC2上安装了任何Web服务器,否则它可能无法在localhost上找到任何内容。应该有一个网络服务器来侦听端口80上的请求。