zoukankan      html  css  js  c++  java
  • CentOS7 关闭selinux

    SELinux, an abbreviation of Security-Enhanced Linux, is a security enhancement to the Linux operating system. It is a labeling system that blocks many system functions in its default configuration.

    SELinux is very useful for some users, but due to its administrative overhead, you may be better off simply disabling it. The time spent adding rules and updating permissions on SELinux versus the added security benefit may not be worth it.

    First check if SELinux is disabled or enabled:

    sestatus
    

    If this command returns "SELinux status: enabled", you can disable SELinux with the following command.

    setenforce 0
    

    The command above will only disable SELinux for now, but the change will be reverted across reboots. Therefore, disable it permanently by opening the file /etc/sysconfig/selinux and replace the current SELINUX directive with a value of disabled so it looks like this:

    vim /etc/sysconfig/selinux
    SELINUX=disabled

    Check the SELinux status again to make sure that it has been properly disabled.

    sestatus
  • 相关阅读:
    『GoLang』接口
    『GoLang』结构体与方法
    『GoLang』包
    『GoLang』字典Map
    『GoLang』数组与切片
    利用griddata进行二维插值
    HTML 标签的 for 属性
    python之成像库pillow
    Python之模块IO
    StringIO和BytesIO
  • 原文地址:https://www.cnblogs.com/lionetchen/p/9182438.html
Copyright © 2011-2022 走看看