You don't have permission to access /cdh5.14.0/ on this server

服务器搭建Apache、httpd服务时访问服务显示You don't have permission to access /cdh5.14.0/ on this server

 

 

 先检查httpd服务是否正常,新建HTML⻚⾯,放置到Apache⽹⻚⽬录中:

1、[root@localhost ~]# cd /var/www/html
2、[root@localhost html]# vim index.html
#编写如下图所示的示例网页:<html> <head><title>index.html</title></head> <body> The Apache is works! </body> </html>

如果显示这个则表示正常,,如果不是这样则表示前面的配置出错,参考https://blog.csdn.net/qq_43213352/article/details/89321931。

 

 

 

 

结论:这里说一下我出错的原因,因为把/cdh5.14.0/文件放在/root目录下面了,在结合don't have permission;然后我把文件放在/home目录下就行了。

 

posted @ 2021-06-03 22:38  乔儿  阅读(235)  评论(0编辑  收藏  举报