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

 

版权声明:本文为mihoutao原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/mihoutao/p/13253384.html