• centos6版本 

    • 永久关闭

      • chkconfig iptables off

      • 查看状态

        • chkconfig iptables --list

    • 此时关闭开机重新启动

      • service iptables stop

      • 查看状态

        • service iptables status

  • centos7版本
    • systemctl stop firewalld.service #关闭防火墙
    • systemctl disable firewalld.service #禁止防火墙开机自启

    • systemctl status firewalld.service #查看防火墙状态
posted on 2018-08-31 09:11  LXYuuuuuu  阅读(122)  评论(0编辑  收藏  举报