标签:core manage 警告 for force 管理 lin contex set
setenforce 0 0表示警告模式 1表示强制模式
关闭要设置/etc/sysconfig/selinux下将"SELINUX=enforcing"改为"SELINUX=disabled",然后重启即可!
yum install policycoreutils-python
getsebool -a | grep httpd查看httpd服务的功能
setsebool -P 功能 on设置相关的功能打开
semanage fcontext -l | grep /westos查看该目录是否有上下文规则。semanage fcontext -a -t public_content_t ‘/westos(/.*)?‘设置/westos添加上下文规则,并通过a步骤命令查看restorecon -RvvF /westos将规则同步至目录及其子目录。标签:core manage 警告 for force 管理 lin contex set
原文地址:https://www.cnblogs.com/praybb/p/9729751.html