您好,欢迎来到花图问答。
搜索
您的当前位置:首页Apache HTTP Server

Apache HTTP Server

来源:花图问答

关于

安装

这里是在CentOS7 下的安装

yum -install httpd

# 会自动的安装一些依赖

配置

ServerRoot "/etc/httpd"  #apache软件安装的位置。其它指定的目录如果没有指定绝对路径,则目录是相对于该目录

Listen 80 #服务器监听的端口号

DocumentRoot  #主站点的网页存储位置

<Directory "/data/statsvn/report"> #权限,用的时候再去查

启动

systemctl start httpd

#检查
ps -ef | grep httpd  

netstat -an | grep 80

配置开机启动

systemctl enable httpd

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

Copyright © 2019- huatuowenda.com 版权所有 湘ICP备2023022495号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务