RedHat 关闭selinux
要關(guān)掉selinux只需要將配置文件中的selinux=enable改成disable
[root@host]# vi /etc/selinux/config
----------------------------------------------------------------------------------
# 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 - SELinux is fully disabled.
SELINUX=disabled#把這里改成disable
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
-------------------------------------------------------------------------------------?
修改后重啟系統(tǒng)即可。
如果在想不重啟系統(tǒng)的情況下關(guān)掉SELINUX,可以輸入命令:
setenforce 0
轉(zhuǎn)載于:https://blog.51cto.com/earwig/927213
《新程序員》:云原生和全面數(shù)字化實踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的RedHat 关闭selinux的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linq TO XML 基础
- 下一篇: 乐分卡和信用卡的区别