星空网 > 软件开发 > 操作系统

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

  防火墙配置后执行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|reload] iptables(分开执行)

  保存设置:

    service iptables save 或者 /usr/libexec/iptables/iptables.init save
    




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

关键词:Centos

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

帅气的鹏仔:https://www.goluckyvip.com/tag/41485.html
双福跨境电商:https://www.goluckyvip.com/tag/41486.html
双流空运:https://www.goluckyvip.com/tag/41487.html
双清fba:https://www.goluckyvip.com/tag/41489.html
双清海派:https://www.goluckyvip.com/tag/41490.html
双十一销售排名:https://www.goluckyvip.com/tag/41491.html
海陵岛马尾岛景点介绍 海陵马尾岛图片:https://www.vstour.cn/a/363177.html
无锡旅游景点竹海 - 无锡的竹海:https://www.vstour.cn/a/363178.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流