标签:services command please enable status
在centos7中用iptables命令配置完策略规则后,需要保存策略永久生效,执行service iptables save时提示:
# service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
的错误信息。
解决方法:
先执行如下命令:
systemctl stop firewalld
systemctl mask firewalld
2.安装iptables services
yum install iptables-services
3.设置开机启动
systemctl enable iptables
4.重启iptables service
systemctl restart iptables
5.执行保存配置命令
service iptables save
本文出自 “从心出发” 博客,请务必保留此出处http://zailushang2016.blog.51cto.com/8855756/1900199
centos7执行" service iptables save"错误提示
标签:services command please enable status
原文地址:http://zailushang2016.blog.51cto.com/8855756/1900199