解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load

来源:互联网 发布:com.cn是什么域名 编辑:程序博客网 时间:2024/06/05 00:34

一直用CentOS 6 习惯了,一下没适应过来。防火墙配置后执行service iptables save 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.”错误,在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。
假如采用传统请执行一下命令:

 

并且安装iptables-services:

设置开机启动:

 

0 0
原创粉丝点击