在刚买的ceno 7服务器中安装vsftpd之后想打开防火墙端口  结果/etc/sysconfig/目录下没有iptables文件  这时候就需要自己写一个iptables文件并且写入相关指令  然后使用 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.
百思不得其解,然后上网百度之后,找到了解决方法:
首先不管防火墙有没有关 都使用systemctl stop firewalld 关闭防火墙
然后使用 yum install iptables-services 安装或更新服务
再使用systemctl enable iptables 启动iptables
最后 systemctl start iptables 打开iptables
大功告成
试试service iptables save

转载于:https://blog.51cto.com/10600928/1975469

关于centos 7 中service iptables save 指令使用失败的结局方案相关推荐

  1. linux7保存防火墙规则,centos7中没有service iptables save指令来保存防火墙规则

    1.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存: service iptables save 如果上述命令 ...

  2. 解决service iptables save出错please try to use systemctl.

    # service iptables save The service command supports only basic LSB actions (start, stop, restart, t ...

  3. Android中实现「类方法指令抽取方式」加固方案原理解析

    一.前言 Android中加固方案一直在进步,因为新的加固方案出来就会被人无情的破解脱壳了,从第一代加固方案落地加密dex文件,第二代加固方案不落地加密dex文件,在到第三代加固方案类方法抽取,以后后 ...

  4. Centos 中 service iptables stop 失败

    Centos7中的防火墙调整为firewalld,试一下systemctl stop firewalld关闭防火墙. 转载于:https://www.cnblogs.com/iberichman/p/ ...

  5. CentOS 7中iptables服务暂停启动和保存备份

    默认使用firewalld管理iptables # yum -y install iptabels         安装iptables #yum -y install iptables-servic ...

  6. CentOS之——CentOS7安装iptables防火墙

    CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables   service iptables ...

  7. CentOS 6.9使用iptables搭建网关服务器(转)

    条件: 网关服务器IP:172.16.0.1,并且可以连接到外网 客户端IP:172.16.0.0/24 1.开启转发支持forward /etc/sysctl.conf net.ipv4.ip_fo ...

  8. /etc/sysconfig/iptables.save文件的用途

    [根据个人实际操作经验总结,未做求证,仅做个人分享] service iptables save 保存规则时   会生成/etc/sysconfig/iptables.save文件 该文件保存内容为修 ...

  9. CentOS 6.x 配置iptables

    CentOS 6.x 配置iptables 来源 https://www.cnblogs.com/chillax1314/p/7976067.html iptables -P INPUT DROP-- ...

最新文章

  1. 《深入浅出Windows Phone 8应用开发》
  2. 开发工业上位机 用pyqt5_用Pyqt5开发的基于MTCNN、FaceNet人脸考勤系统
  3. 怎么知道一名研究生有没有科研潜力?
  4. 提交不了_从来没有借过钱!征信空白,为什么办不了信用卡?
  5. 光辉之章事件有哪些常规操作?天谕手游事后的补偿真的很安慰?
  6. linux指定查看文件目录,【Linux】查看指定目录下的每个文件或目录的大小
  7. parseInt和valueOf
  8. linux 文件可执行_深入理解linux内核——可执行文件执行过程(2)
  9. 关于大数据和互联网的一点想法
  10. Vue —— 移动端添加 fastclick
  11. Ambari安装和汉化(转)
  12. 【历史上的今天】1 月 19 日:苹果推出 Lisa;RIM 发布第一款黑莓手机;计算机先驱诞生日
  13. xml和html的区别和联系
  14. 易扩展,易复用,封装axios
  15. 构建一体化数字营销平台,助力医药企业实现销售转化能级大幅跃迁 | 案例研究
  16. 推荐一个牛逼的直播开源项目
  17. 计算机pe教程,u启动windows7PE工具箱
  18. 解决flask框架本地代码已经刷新,但是端口内容不变的问题
  19. 亲完如何进行下一步_相亲完了下一步怎么办 相亲过后怎么发展
  20. Owndoor开门应用APP安卓苹果

热门文章

  1. Shell declare的使用方法
  2. Linux 查看 占用内存最多 占用cpu最多 程序(类似top,监视)
  3. python类及其方法
  4. java基础的第二轮快速学习!day03
  5. vue小demo易错点总结
  6. python数据类型及字符编码
  7. Ubuntu android 开发配置
  8. AJAX使用技巧:如何处理书签和翻页按扭
  9. 【网络基础】路由表,分组转发算法
  10. Blum Integer的定义及举例