”because search permissions are missing on a component of the path“
2017-08-17 13:06
459 查看
使用 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 0
b. permissive --> enforcing
# setenforce 1
=====================
=======重启修改=======
c. enforcing/permissive --> disabled
# sed -i s#SELINUX=.*#SELINUX=disabled#g /etc/selinux/config
# reboot
d. disabled/permissive --> enforcing
sed s#SELINUX=.*#SELINUX=enforcing#g /etc/selinux/config
# reboot
e. disabled/enforcing --> permissive
sed s#SELINUX=.*#SELINUX=permissive#g /etc/selinux/config
# reboot
=====================
4. 文件 label 查看
# ls -Z
请关闭 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 0
b. permissive --> enforcing
# setenforce 1
=====================
=======重启修改=======
c. enforcing/permissive --> disabled
# sed -i s#SELINUX=.*#SELINUX=disabled#g /etc/selinux/config
# reboot
d. disabled/permissive --> enforcing
sed s#SELINUX=.*#SELINUX=enforcing#g /etc/selinux/config
# reboot
e. disabled/enforcing --> permissive
sed s#SELINUX=.*#SELINUX=permissive#g /etc/selinux/config
# reboot
=====================
4. 文件 label 查看
# ls -Z
相关文章推荐
- HTTP Error 404.2 - Not Found The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server(转)
- CRS-4258: Addition and deletion of voting files are not allowed because the voting files are on ASM
- IIS Error:404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server
- CRS-4258: Addition and deletion of voting files are not allowed because the voting files are on ASM
- Why Human-Controlled, Force-Multiplying Robots Are the Future of Work on Earth
- sudo 使用不了, the permissions on the /etc/sudoers file are changed to something other than 0440
- 异常 The page you are requesting cannot be served because of the extension configuration
- Get to the Top on Google: Tips and Techniques to Get Your Site to the Top of the Search Engine Ranki
- This compilation unit is not on the build path of java project 错误
- eclipse中设置.abc--xyz触发提示输入时,提示This compilation unit is not on the build path of java project 异常如何解决?
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
- Here Are 8 Of The Top Open Source Full-Text Search Engines!
- 关于谷歌..Synchronous XMLHttpRequest on the main thread is deprecated because of its...
- eclipse中js中ctrl+鼠标点击方法出现 the resource is not on the include path of a javaScript project
- this compilation unit is not on the build path of a java project
- File xxx.ps1 cannot be loaded because the execution of scripts is disabled on this system
- SpringBoot集成日志logback.groovy报错: Groovy classes are not available on the class path. ABORTING INITIALIZATION.
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- 提交页面出现提示:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effe
- These kinds of timepieces are usually far better cloned as compared to some other timepieces because of the sought after and also reputation