SElinux简介

/usr/sbin/sestatus -v 或 getenforce                   ----查看SELinux状态

-----临时关闭SELinux(不用重启机器)-----

setenforce 0                   ##设置SELinux 成为permissive模式

setenforce 1                   ##设置SELinux 成为enforcing模式

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.

# disabled - No SELinux policy is loaded.

-----修改配置文件,需要重启机器------

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

----------------------------------

sestatus -b | grep ftp ----查看SELinux的状态

    sestatus - SELinux status tool

         -b Display the current state of booleans.

原文地址:https://www.cnblogs.com/jacob-tian/p/6479571.html