centos7 nginx can ping the domain name, but not open the page

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

 

Guess you like

Origin www.cnblogs.com/sayshap/p/11864187.html