最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
CentOS 7告iptables防火墙提示Unit iptables.service failed to load
时间:2022-06-30 20:55:51 编辑:袖梨 来源:一聚教程网
一直用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来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。
假如采用传统请执行一下命令:
systemctl stop firewalld
systemctl mask firewalld
并且安装iptables-services:
yum install iptables-services
设置开机启动:
systemctl enable iptables
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
service iptables save
#or
/usr/libexec/iptables/iptables.init save
从上面的解决办法来看这个是防火墙没有启动了,iptables防火墙服务未启动导致的哦。
相关文章
- 鸣潮2.8版本能攒多少抽 2.8版本星声数量汇总 11-19
- 境界刀鸣茶渡泰虎怎么培养 茶渡泰虎养成攻略 11-19
- 境界刀鸣斩系队角色有哪些 斩系队角色一览 11-19
- 卡厄思梦境百丽儿技能是什么 百丽儿技能效果介绍 11-19
- 境界刀鸣常驻6选1怎么选 常驻6选1选择推荐 11-19
- 洛克王国世界怎么挖宝藏 挖宝藏攻略 11-19