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.
无法执行的原因是/etc/sysconfig/iptables 这个文件还没有生成呢。
iptables需要升级!
解决方法:
1,systemctl stop firewalld
2,yum install iptables-services
3,systemctl enable iptables
4,systemctl start iptables
之后就可以执行service iptables save
命令了
Powered by rrcnzz.com
©2019 - 2024 人人站长网
您的IP:18.189.170.227,2024-11-23 17:56:43,Processed in 0.05203 second(s).