centos7上面关闭防火墙

CentOS 7.0默认使用的是firewall作为防火墙;若没有启用iptables 作为防火墙,则使用以下方式关闭防火墙:

systemctl stop firewalld.service

关闭开机启动防火墙:

systemctl disable firewalld.service

查看查状态

firewall-cmd --state

若已经启用iptables作为防火墙,则使用以下方式关闭:

service iptables stop  #临时关闭防火墙
chkconfig iptables off #永久关闭防火墙

猜你喜欢

转载自www.cnblogs.com/xiufengchen/p/10387066.html
今日推荐