重启防火墙(iptables)命令#service iptable restart失效

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
上一篇:Finereport10.0学习记录——day 01


下一篇:编写shell脚本一键启动 重启 停止springboot项目