”because search permissions are missing on a component of the path“

来源:互联网 发布:阿里云 健康管理平台 编辑:程序博客网 时间:2024/06/05 06:53

使用 httpd 访问时,如果遇到标题描述的问题:

请关闭 SElinux 试下:

# setenforce 0

关于 SElinux 简记:

1. SElinux 有三种策略:

#     enforcing - SELinux security policy is enforced.#     permissive - SELinux prints warnings instead of enforcing.#     disabled - No SELinux policy is loaded.

2. 查看

# getenforce# sestatus

3. 策略转变

=======在线修改=======a. enforcing --> permissive# setenforce 0b. permissive --> enforcing# setenforce 1============================重启修改=======c. enforcing/permissive --> disabled# sed -i s#SELINUX=.*#SELINUX=disabled#g /etc/selinux/config# rebootd. disabled/permissive --> enforcingsed s#SELINUX=.*#SELINUX=enforcing#g /etc/selinux/config# reboote. disabled/enforcing --> permissivesed s#SELINUX=.*#SELINUX=permissive#g /etc/selinux/config# reboot=====================

4. 文件 label 查看

# ls -Z

阅读全文
0 0
原创粉丝点击