`
lanfei
  • 浏览: 154397 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Linux运行service iptables save报错

 
阅读更多

执行service iptables save 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.”

 

使用以下命令保存:

 

iptables-save > /etc/sysconfig/iptables

 

iptables-save是将规则追加到一个文件

分享到:
评论

相关推荐

    通过oracle客户端配置TNS测试报错问题

    service iptables save service iptables restart ``` - 使用`iptables -L -n`命令检查规则是否生效,确认1521端口已开放。 6. **测试连接**: - 最后,再次使用`tnsping`命令或数据库客户端工具(如PL/SQL ...

    windows下使用vnc连接Linux系统

    service iptables save ``` 如果是云服务器,需从安全组开通5901的端口号。 测试连接 在Windows系统中安装VNC客户端,新建连接,VNC server 写上:"IP:1",Name 则输入 root。 常见问题 连接之后,页面展示为...

    weblogic11g 64位 安装 linux 65

    sudo service iptables save ``` 这将允许外部连接到7001端口。为了永久生效,还需要将此规则添加到iptables配置文件。 在整个安装过程中,关键步骤包括: - 使用SecureCRT和SecureFX工具远程连接到Linux系统,...

    CentOS6.2.X86_64安装VNC的rpm包

    sudo service iptables save sudo service iptables restart ``` 8. **远程连接**:现在,你可以在其他设备上使用VNC客户端(如RealVNC, TightVNC等)连接到服务器的IP地址和端口号(如192.168.1.101:5901)。 ...

    简易环境搭建(LAMP)

    /etc/rc.d/init.d/iptables save /etc/init.d/iptables restart ``` Apache的默认网站目录位于`/var/www/html`,可以在此创建PHP测试文件,如`info.php`,并查看是否正常运行: ```bash vi /var/www/html/info.php ...

Global site tag (gtag.js) - Google Analytics