最新下载
热门教程
- 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防火墙服务未启动导致的哦。
相关文章
- 神武4特殊技能攻略(掌握特殊技能,成为神武大陆的真正强者) 07-16
- 126邮箱网页版官方入口链接-网易126邮箱官方在线登录 07-16
- 红板报怎么发文章 红板报发布文章方法 07-16
- 棕色尘埃2wiki国际版官网入口-2026年棕色尘埃2wiki国际版官方网站 07-16
- 捏咔官方下载免费-捏咔app最新版下载 07-16
- 勇战反击技能搭配攻略(掌握技能搭配,成为无敌战士) 07-16