Redirecting to /bin/systemctl restart iptables.ser
linux下执行防火墙相关指令报错:
Redirecting to /bin/systemctl restart iptables.service
1,安装systemctl:
yum install iptables-services
2,设置开机启动:
systemctl enable iptables.service
然后就可以执行以下指令了:
systemctl stop iptables
systemctl start iptables
systemctl restart iptables
systemctl reload iptables