• 正确关闭selinux


    1、查看当前selinux的状态命令为
      getenforce
    
    
    2、两个都要关。注意先看看有么有这两个文件,如果没有就创建一个,否则后期会出现很多问题
    
    cat > /etc/selinux/config << EOF
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of three two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected. 
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted 
    EOF
    
    sed -i 's/enforcing/disabled/g' /etc/selinux/config
    
    sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
    
    
    3、再次查看当前selinux的状态命令为
      getenforce
     
  • 相关阅读:
    Bootstrap的介绍和响应式媒体查询
    jquery内容补充
    jquery的ajax
    jquery的事件
    JQuery的筛选方法
    jquery的css
    jQuery的文档操作
    操作表单域中的value值
    jquery的属性操作
    jquery的效果
  • 原文地址:https://www.cnblogs.com/effortsing/p/10273842.html
Copyright © 2020-2023  润新知