一、将httpd服务加到防火墙策略(允许http通过防火墙)
firewall-cmd --permanent --add-service=http
firewall-cmd --reload (重启防火墙)
二、centos7关闭防火墙
systemctl stop firewalld("临时"关闭防火墙)
systemctl disable firewalld(让防火墙开机不自动启动)
一、将httpd服务加到防火墙策略(允许http通过防火墙)
firewall-cmd --permanent --add-service=http
firewall-cmd --reload (重启防火墙)
二、centos7关闭防火墙
systemctl stop firewalld("临时"关闭防火墙)
systemctl disable firewalld(让防火墙开机不自动启动)