centos关闭防火墙报错:服务 iptables 信息读取出错:没有那个文件或目录

1.使用chkconfig iptables off 关闭防火墙报错

 2.原因:CentOS7默认的防火墙不是iptables,而是firewalle,可以使用

systemctl stop firewalld.service #停止firewall

其他命令:

systemctl status firewalld #查看防火墙状态
systemctl start firewalld.service #启动firewall
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl enable firewalld.service # 开机启动

おすすめ

転載: blog.csdn.net/qq_36603180/article/details/120902192