Method one: turn off the firewall
sudo systemctl stop firewalld.service
Method two: allow access to port 80
vim open iptables, the following command:
#vim /etc/sysconfig/iptables
increase
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Restart the firewall
# service iptables restart