CentOS7關閉SELinux


查看

[root@dev-server ~]# getenforce
Disabled
[root@dev-server ~]# /usr/sbin/sestatus -v
SELinux status:                 disabled

臨時關閉

##設置SELinux 成為permissive模式
##setenforce 1 設置SELinux 成為enforcing模式
setenforce 0

永久關閉

vi /etc/selinux/config

將SELINUX=enforcing改為SELINUX=disabled 
設置后需要重啟才能生效


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM