确认问题
[root@VM-0-7-centos ~]# curl http://127.0.0.1
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" v=2.0&key=777e724bd088e83df0a863a405087e9b"></script></html>
[root@VM-0-7-centos ~]#
有结果
curl http://<你的ip地址>
如下:
[root@VM-0-7-centos ~]# systemctl stop iptables
Failed to stop iptables.service: Unit iptables.service not loaded.
问题确认: 1.要么是安全组设置问题 2.要么是iptabels问题
解决方案
1.打开80
image.png
2.云服务器不需要iptables,关闭
[root@VM-0-7-centos ~]# iptables -F
原因
iptables 和 安全组都是阻止访问的地方,都要检查