zoukankan      html  css  js  c++  java
  • Linux 重启防火墙失败

    CentOS 7 执行service iptables start出现redirecting to systemctl ...Failed to ...not loaded.

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

    systemctl restart.service

    其注意一下;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
    來源:简书
    简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
  • 相关阅读:
    python中list的一种取值方式切片
    python之字典(Dictionary)
    表示数字
    自动收售货系统
    明明的随机数
    自守数
    等差数列
    计算字符个数
    字符统计
    Redraimen的走法
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/9975423.html
Copyright © 2011-2022 走看看