centos7关闭防火墙

Posted mihoutao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于centos7关闭防火墙的主要内容,如果未能解决你的问题,请参考以下文章