打赏
Fork me on GitHub

[原]关闭selinux

检查selinux状态

1 [root@controller0 ~]# getenforce
2 enforcing                                #disabled表示关闭状态   enforcing表示开启状

临时关闭selinux(不用重启机器,临时生效)

setenforce 0         ##设置selinux为permissive模式   临时生效
setenforce 1         ##设置SELinux为enforcing模式

永久关闭selinux

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器,完成

posted @ 2016-05-30 11:06  my_cool2007  阅读(444)  评论(0编辑  收藏  举报