zoukankan      html  css  js  c++  java
  • 3.centos 7执行service iptables save报错问题

    1.报错  

    [root@localhost ~]# service iptables save
    The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.

    2.无法执行的原因是/etc/sysconfig/iptables 这个文件还没有生成呢。需要升级iptables。  

    [root@localhost ~]# systemctl stop firewalld
    systemctl stop 
    
    [root@localhost ~]# yum install iptables-services.x86_64 
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
     * base: mirror.bit.edu.cn
     * extras: mirrors.huaweicloud.com
     * updates: mirrors.huaweicloud.com
    ... ... 
    Installed:
      iptables-services.x86_64 0:1.4.21-34.el7                                                              
    
    Complete!

    [root@localhost ~]# systemctl enable iptables Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service.
    [root@localhost
    ~]# systemctl start iptables [root@localhost ~]# service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
  • 相关阅读:
    请简述APP(移动运用)在升级安装时候应该考虑的场景?
    订单怎么测试
    支付功能测试
    购物车测试方法
    Python xlrd模块读取Excel表中的数据
    对h5页面的测试方式
    selenium IDE的使用
    单表王五涨工资操作
    siri功能测试
    逻辑题
  • 原文地址:https://www.cnblogs.com/xinghen1216/p/13741157.html
Copyright © 2011-2022 走看看