# 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 systemctl m…
CentOS 7.x开始,CentOS开始使用systemd服务来代替daemon,原来管理系统启动和管理系统服务的相关命令全部由systemctl命令来代替.service命令只保留下了极少部分使用,大部分命令都要改用systemctl使用. [root@localhost ~]# service iptables save The service command supports only basic LSB actions (start, stop, restart, try-restar…
本文档根据 service iptables save 报错 please try to use systemctl 提供解决方案.报错 [root@Jaking ~]# service iptables saveThe service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, pleas…
在安装zookeeper时,需要放开端口2181 按照视频教程在 /etc/sysconfig/ 下对iptables 文件进行编辑,但是该目录下没有此文件 通过强行写iptables -P  OUTPUT  ACCEPT 然后输入:service iptables save 结果报错. 正确操作: 1.systemctl  stop  firewalld 关闭防火墙 2.yum  install  iptables-services 安装服务 提示输入  y 3.systemctl  enab…
解决方式: iptables -F  // 初始化iptables. service iptables save  // 保存 service iptables restart  // 重启…
解决方法: systemctl stop firewalld  关闭防火墙yum install iptables-services 安装 iptables 服务systemctl enable iptables           设置 iptables 服务开机启动systemctl start iptables 启动iptables service iptables save 保存iptables配置…
1.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存: service iptables save 如果上述命令执行失败报出:The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, pleas…
1.任意运行一条iptables防火墙规则配置命令: iptables -P OUTPUT ACCEPT 2.对iptables服务进行保存: service iptables save 如果上述命令执行失败报出:The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, pleas…
现象描述 在 CentOS 7.6.1810 下执行 service iptables save 命令,出现如下错误: [root@test ~]# 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 u…
解决办法: 1.systemctl stop firewalld 2.yum install iptables-services 3.systemctl  restart iptables 4.service  iptables  save 5.添加规则 6.iptables -L -n…