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:3.133.157.231,2024-11-23 21:09:53,Processed in 0.04723 second(s).