編碼的世界 / 優質文選 / 感情

CentOS7關閉SELinux


2022年6月25日
-   

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  設置後需要重啟才能生效
參考文獻:
https://blog.csdn.net/xinluke/article/details/51925293





CSDN 社區圖書館,開張營業!


深讀計劃,寫書評領圖書福利~

熱門文章