centos7关闭防火墙

centos6中防火墙是iptables,centos7中防火墙是firewalld

在centos7中用service iptables status查看防火墙状态会报错

Redirecting to /bin/systemctl status iptables.service

Unit iptables.service could not be found.

 

centos7中启动防火墙命令是systemctl status firewalld

查看 systemctl status firewalld

关闭 systemctl stop firewalld

永久关闭 systemctl disable firewalld

 

posted on 2020-07-06 10:07  金龟子大战猕猴桃  阅读(266)  评论(0编辑  收藏  举报