关闭防火墙
systemctl stop iptables
systemctl disable iptables
yum remove iptables
rm -rf /etc/sysconfig/iptables
rm -rf /etc/sysconfig/iptables-config
systemctl stop firewalld.service
systemctl disable firewalld.service
#放行端口:(若面向外网,可向外网开放端口)
firewall-cmd --zone=pubilc --add-port=80/tcp --permanent
#重启防火墙:
firewall-cmd --reload
标签:sysconfig,--,防火墙,Centos7,firewall,systemctl,关闭,iptablesrm From: https://www.cnblogs.com/sinsenliu/p/17679878.html