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
    來源:简书
    简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
  • 相关阅读:
    java中级或者高级面试题分享
    java常使用的框架
    spring的定时器
    ArrayList源码理解
    缓存 Memached
    ORM框架
    Web处理方式
    git使用
    Entity Framework
    .net 学习笔记2
  • 原文地址:https://www.cnblogs.com/zhangzhonghui/p/9975423.html
Copyright © 2011-2022 走看看