本博客为service iptables save 报错 please try to use systemctl 提供解决方案。
报错
[root@tencent ~]# 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.
解决办法
一、停止firewalld
[root@tencent ~]# systemctl stop firewalld
[root@tencent ~]# systemctl mask firewalld
Created symlink from /etc/systemd/system/firewalld.service to /dev/null.
二、安装iptables-services
[root@tencent ~]# yum install -y iptables-services
三、开启iptables-services
[root@tencent ~]# service iptables start
Redirecting to /bin/systemctl start iptables.service
或者使用systemctl控制iptables
systemctl [start|status|stop|restart|enable