Linux Centos7 防火墙

CentOS 7.0配置静态IP



 

重启服务 service network restart

关闭防火墙

查看防火墙状态

firewall-cmd --state
#启动firewall
systemctl start firewalld.service

#停止firewall
systemctl stop firewalld.service

#禁止firewall开机启动
systemctl disable firewalld.service

改成iptables
systemctl start iptables.service

猜你喜欢

转载自nicky19870612.iteye.com/blog/2182153