zoukankan      html  css  js  c++  java
  • CentOs 7 Linux系统下我的/etc/sysconfig/路径下无iptables文件

     

    因为默认使用的是firewall作为防火墙,把他停掉装个iptable

    systemctl stop firewalld 
    systemctl mask firewalld

    yum install -y iptables 
    yum install iptables-services

    然后就有iptables文件,就可以作配置

    开启服务 
    systemctl start iptables.service

    systemctl restart iptables.service // 重启防火墙使配置生效 
    systemctl enable iptables.service // 设置防火墙开机启动

    其他命令: 
    检查是否安装了iptables 
    service iptables status 
    安装iptables 
    yum install -y iptables 
    升级iptables 
    yum update iptables 
    安装iptables-services 
    yum install iptables-services

    systemctl disable iptables #禁止iptables服务 
    systemctl stop iptables #暂停服务 
    systemctl enable iptables #解除禁止iptables 
    systemctl start iptables #开启服务

    原文链接: https://www.cnblogs.com/chengjinsheng/p/14179891.html

  • 相关阅读:
    圣杯布局(定宽与自适应)
    【转载】jQuery插件开发精品教程,让你的jQuery提升一个台阶
    DOM 事件深入浅出(一)
    匿名类型
    类和结构
    C#预处理器指令
    Main()方法
    枚举
    预定义数据类型
    C#语言
  • 原文地址:https://www.cnblogs.com/jadening/p/14248898.html
Copyright © 2011-2022 走看看