今天安装CDH,搭建httpd时,发生了403错误。调试了半天(都是泪啊),各种改配置,还是403,结果最后是Selinux搞的鬼。禁用就可以了。
先错解决方法:禁用selinux
~]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=permissive
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
期间还是了解了不少httpd的配置,记录一下吧:
http://cn.linux.vbird.org/linux_server/0360apache.php
http://www.cnblogs.com/starof/p/4685999.html