
正文
腾讯云(centos)上安装apache
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
- 安装
yun install httpd
- 随系统自启动
chkconfig httpd on
- 修改/etc/httpd/conf/httpd.conf文件
#修改WWW目录为自己的目录
DcoumentRoot "/mydata/www"#修改apache用户和组
User XXX
Group XXX#为自己的目录增加权限
<Directory "/mydata/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory> - 开启apache
service httpd start
- Note:有问题的话检查selinux和防火墙








