`
fan-R
  • 浏览: 44156 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

centos“You don't have permission to access /index.html on this server.”

阅读更多
Forbidden

You don't have permission to access /index.html on this server.

开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了.

原因:index.html是用root用户建的文件,apache权限不够。

解决方法:更改文件权限;chmod 755 index.html
分享到:
评论

相关推荐

    http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

    http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

    Centos7部署本地局域网yum源

    Centos7 部署本地局域网 yum 源 本地 yum 源仓库是公司部署大量服务器时的必要配置,因为阿里云镜像源必须要连接外网才可以使用,占用出口带宽,且有些特殊的镜像源架设在国外,使用起来很不稳定。因此,部署本地 ...

    centos7 本地yum源配置

    PackageKit-yum-1.0.7-6.el7.centos.x86_64 yum-utils-1.1.31-40.el7.noarch 下方两个一起装 yum-plugin-fastestmirror-1.1.31-40.el7.noarch yum-langpacks-0.4.2-7.el7.noarch yum-3.4.3-150.el7.centos.noarch ...

    解决 github项目clone报错 Failed connect to github.com:443; 解决

    系统环境:CentOS Linux release 7.6.1810 (Core) 起因:npm构建时报错 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: ...

    CentOS7.6、7.9系统httpd服务ARM架构、x86架构离线包以及具体步骤

    此内容主要用于CentOS7.6、CentOS7.9操纵系统中,并且操作系统不能够链接外网无法使用yum安装httpd服务,所以只能使用离线安装包进行安装。其中步骤在实际的CentOS与服务器验证过,可能安装过程中会有问题,请根据...

    https://buildlogs.centos.org/c7.1511.00/kernel/20151119220809/3.10.0-327.el7.x86

    kernel-3.10.0-327.el7.x86_64.rpm...源下载地址:https://buildlogs.centos.org/c7.1511.00/kernel/20151119220809/3.10.0-327.el7.x86 没有积分的就去下源地址的吧,网络不好的就花点积分下载我的吧,我也是找了半天

    在 CentOS 8 上安装Jenkins的方法

    在CentOS 8 上安装Jenkins需要使用root账号或具有sudo权限的账号。因为Jenkins是使用Java编写的,所以需要安装Java环境 1、安装OpenJDK。 sudo dnf install java-1.8.0-openjdk-devel 2、启用Jenkins存储库。...

    Centos7同步阿里yum仓库搭建yum私有仓库

    一、准备 确认在预拉取yum包的机子关于网络...[root@mini2 /]# wget -O /etc/yum.repos.d/base.repo http://mirrors.aliyun.com/repo/Centos-7.repo //base源 [root@mini2 /]# wget -O /etc/yum.repos.d/epel.repo h

    linux 下镜像地址配置问题(centos8)

    sudo sed -e 's|^#baseurl=http://mirror.centos.org/$contentdir/$releasever|baseurl=http://mirrors.cloud.aliyuncs.com/$contentdir/$releasever-stream|g' -i.bak /etc/yum.repos.d/CentOS-*.repo ``` 这里,...

    CentOS7.5安装配置.docx

    可以选择安装最小化系统(Minimal),仅包含基本工具和服务,或者选择服务器版本(Server),包含更多的软件和服务,适用于构建服务器环境。 **2.4 安装位置** 选择好硬盘分区方案之后,点击“Begin Installation”...

    DVWA靶场搭建教程,网站搭建

    access_log /var/log/nginx/dvwa.access.log; error_log /var/log/nginx/dvwa.error.log; location / { index index.php; try_files $uri $uri/ /index.php; } location ~ \.php$ { include snippets/...

    CentOS-7-x86_64-Everything-1804 VMware workstation12

    centos7.0 sso下载地址:http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1804.iso 方案二: centos7.0已经做好的镜像(包含图形化): 链接:...

    详解Linux(centos7)下安装OpenSSL安装图文方法

    操作系统:CentOs7安静 OpenSSL Version:openssl-1.0.2j.tar.gz 目前版本最新的SSL地址为http://www.openssl.org/source/openssl-1.0.2j.tar.gz 1、将下载的压缩包放在根目录, 2、在文件夹下解压缩,命令:tar ...

    CentOS-7-Base.repo

    http://mirrors.btte.net/centos/7/isos/x86_64/ ...http://centos.ustc.edu.cn/centos/7/isos/x86_64/ http://mirrors.neusoft.edu.cn/centos/7/isos/x86_64/ http://

    CentOS7.2 安装L2TP/IPSec 服务端/客户端 ( libreswan+xl2tpd )

    配套说明: http://blog.csdn.net/gogoytgo/article/details/79420745

    CentOS配置本地yum源/阿里云yum源/163yuan源并配置yum源的优先级

    一、用Centos镜像搭建本地yum源 由于安装centos后的默认yum源为centos的官方地址,所以在国内使用很慢甚至无法访问,所以一般的做法都是把默认的yum源替换成aliyun的yum源或者163等国内的yum源(下文介绍如何配置)。...

    CentOS-7-aarch64-Everything-2009.part05.rar

    CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...

    Centos7.6/7.9系统安装DELL OMSA说明

    本文档旨在指导用户在Centos7.6/7.9系统上安装DELL OMSA(OpenManage Server Administrator),并提供了详细的安装步骤和解决常见问题的方法。 一、关闭防火墙和selinux 在安装OMSA之前,需要关闭防火墙和selinux...

    深入解析mysql.sock不见的问题

    让人纠结了一把…… 代码如下:zhouqian@zhou:~$ mysqlERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)网上好多的解决办法,可是每个人的实际情况...

    Redhat 使用CentOS的yum源进行升级或软件安装

    在/etc/yum.repos.d/新建文件centos.repo,内容如下: ######################################################################### # CentOS-Base.repo # # The mirror system uses the connecting IP address of ...

Global site tag (gtag.js) - Google Analytics