重启防火墙(iptables)命令#service iptable restart失效
#service iptable restart
Redirecting to /bin/systemctl restart iptable.service
Failed to issue method call: Unit iptable.service failed to load: No such file or directory.
据说从某个版本的Linux系统(CenterOS/RedHat)后就将service命令改了,如下
#systemctl restart iptables.service
#iptables -L
重启防火墙成功~~~~
————————————————
版权声明:本文为CSDN博主「cn_lyg」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/cn_lyg/article/details/78109940
来源:https://blog.csdn.net/Walker7143/article/details/102760784