Failed to stop iptables.service: Unit iptables.service not loaded.
来源:互联网 发布:淘宝策划书模板 编辑:程序博客网 时间:2024/05/29 02:39
一直用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防火墙服务未启动导致的哦。
0 0
- Failed to stop iptables.service: Unit iptables.service not loaded.
- Unit iptables.service failed to load
- 在centos7中使用service iptables stop 显示not loaded
- 解决centos7中使用service iptables stop 显示not loaded
- CentOS之service iptables stop 显示not loaded
- 解决centos7中使用service iptables stop 显示not loaded
- 执行service iptables start出现redirecting to systemctl ...Failed to ...not loaded.
- service iptables stop
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- Fix “Unit iptables.service failed to load: No such file or directory” Error In CentOS7
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- CentOS7关闭/开启防火墙出现Unit iptables.service failed to load: No such file or directory
- 解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
- linux Failed to restart iptables.service
- 解决CentOS 7出现Failed to issue method call: Unit iptables.service failed to load: No such file or direc
- quick cocos2d-x 关于table的拷贝问题
- 关于hamcrest的问题解决
- dataframe 存入MySQL,Python 'timestamp' cannot be converted to a MySQL type
- MySQL事务隔离级别详解
- 关于Android6.0蓝牙Ble搜索的demo和一点心得
- Failed to stop iptables.service: Unit iptables.service not loaded.
- iOS 用自签名证书实现 HTTPS 请求的原理实例讲解
- leetcode-101. Symmetric Tree 解题笔记
- C++函数声明后面加throw()的作用!
- 分享一个文件上传插件
- 【安卓知识汇总】android 美化圆角图形
- leetcode oj java Number of Segments in a String
- 恢复目录的系统权限
- android 透明百分比