为什么要关闭senlinux
在还是菜鸟的时候,这个安全作用还不是很大,容易给开发带来很多问题,为了 避免很多麻烦,关闭它。
# 查看 是否关闭的状态
[root@localhost python]# getenforce
Enforcing
临时关闭
[root@localhost python]# setenforce 0
##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
setenforce 0
永久关闭
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
设置后需要重启才能生效