如果出现以下错误,好像说的是 版本高了,需要采用其他方式了

Linux 重启防火墙失败

systemctl restart.service

Linux 重启防火墙失败

其注意一下;systemctl restart.service 需要进行安装 

知识来源于:https://www.jianshu.com/p/de069a89c4b8

1. 使用systemctl

systemctl [start|stop|restart|save|status] iptables.service

2. 安装iptables-services

切换到root用户下,执行:

yum install iptables-services
systemctl enable iptables.service //设置开机启动

之后就可以使用以下指令了:

service iptables [start|stop|restart|save|status]



作者:adXiang
链接:https://www.jianshu.com/p/de069a89c4b8
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

相关文章:

  • 2022-01-26
  • 2021-11-21
  • 2021-12-27
  • 2021-04-12
  • 2022-01-13
  • 2022-03-06
  • 2022-02-19
猜你喜欢
  • 2022-02-08
  • 2021-08-01
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案