linux关闭firewall,selinux

来源:互联网 发布:手机金属探测仪软件 编辑:程序博客网 时间:2024/06/07 15:05
  1. selinux
    vi /etc/selinux/config
    在 SELINUX=enforcing 前加 #
    写入:
    SELINUX=disabled
    保存重启

    关闭而不重启
    setenforce=0 含义为SELINUX=disabled
    setenforce=1 含义为SELINUX=enforcing
  2. firewall
    查看:
    /etc/init.d/iptables status
    关闭:
    /etc/init.d/iptables stop
    重启后永久关闭:
    chkconfig iptables off 
0 0
原创粉丝点击