centos7上面关闭防火墙

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

systemctl stop firewalld.service

关闭开机启动防火墙:

systemctl disable firewalld.service

查看查状态

firewall-cmd --state

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

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

 

posted @ 2019-02-16 11:06  菩提树下的丁春秋  阅读(2370)  评论(0编辑  收藏  举报