• 七云数据--高防低价服务器抢购
  • 黑猫导航网
  • 七云数据-海外/国内云服务器 黑猫导航网 网络验证系统 短信宝-精准短信营销服务平台 50/月文字广告位 50/月文字广告位 50/月文字广告位 50/月文字广告位

    linux下如何关闭系统防火墙


    1、使用iptables –help可以查看帮助使用命令

    2、可以使用以下命令查看iptables的状态service iptables status

    3、当然还有其他的一些参数选择,可以使用service iptables -help帮助一下,其实就是停止的意思,直接上命令如果需要永久关闭iptables,

    使用chkconfig iptables off 这样以后开机也不需要再去做设置了,永久性的关闭了

    1:查看防火状态

    systemctl status firewalld

    service iptables status

    2:暂时关闭防火墙

    systemctl stop firewalld

    service iptables stop

    3:永久关闭防火墙

    systemctl disable firewalld

    chkconfig iptables off

    4:重启防火墙

    systemctl enable firewalld

    service iptables restart

    5:永久关闭后重启

    chkconfig iptables on


    推荐阅读:

    centos系统 command not found解决方法

    Nginx Web服务器禁止某个文件和目录访问方法教程解决

    评 论
    请登录后再评论