Apache(httpd)服务正在Ec2上的端口80上运行,curl localhost:80显示位于/var/www/html的index.html文件的内容

Apache(httpd)服务正在Ec2上的端口80上运行,curl localhost:80显示位于/var/www/html的index.html文件的内容,apache,amazon-ec2,Apache,Amazon Ec2,Apache(httpd)服务正在RedHat EC2实例的端口80上运行,命令“curl localhost:80”显示位于Apache服务器的/var/www/html的index.html文件的内容 下面是命令“servicehttpdstatus”的输出,它显示apache正在端口80上运行和侦听 Active: active (running) since Thu 2020-01-23 16:25:44 UTC; 24s ago Docs: man:httpd.service

Apache(httpd)服务正在RedHat EC2实例的端口80上运行,命令“curl localhost:80”显示位于Apache服务器的/var/www/html的index.html文件的内容

下面是命令“servicehttpdstatus”的输出,它显示apache正在端口80上运行和侦听

Active: active (running) since Thu 2020-01-23 16:25:44 UTC; 24s ago Docs: man:httpd.service(8) Main PID: 1651 (httpd) Status: "Running, listening on: port 80" 使用http://:80的apache

然后浏览器给出消息

“无法访问此站点”

请让我知道为什么我无法使用 http://:80
还有什么办法可以让我访问它

curl localhost:80 returns output as below hello world 本地主机:80 返回如下输出 你好,世界 旋度公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘公厘 返回如下输出 curl:(7)无法连接到*.172端口80:没有到主机的路由
我的Ec2实例的安全组规则是接受所有流量,这意味着我的Ec2实例上的http端口80是打开的。

有人能回答这个问题吗有人能回答这个问题吗 curl localhost:80 returns output as below hello world curl Public_IP_OF_EC2:80 returns output as below curl: (7) Failed to connect to *.*.***.172 port 80: No route to host