Httpd 发生 403错误

原创
2017/06/06 23:38
阅读数 9

今天安装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

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部