解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
2015-12-22 23:21
597 查看
一直用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来管理,当然你可以还原传统的管理方式。或则使用新的命令进行管理。
假如采用传统请执行一下命令:1 2 | systemctl stop firewalld systemctl mask firewalld |
并且安装iptables-services:
1 | yum install iptables-services |
1 | systemctl enable iptables |
1 2 3 | systemctl [stop|start|restart] iptables #or service iptables [stop|start|restart] |
1 2 3 | service iptables save #or /usr/libexec/iptables/iptables.init save |
相关文章推荐
- Linux socket 初步
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Centos6 编译安装Python
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程