apache 绿色版 安装

本文以Apache 2.4为例,介绍绿色版Apache的下载、解压步骤,还提及在XP系统需安装vs 2008 sp1和vc2008。安装服务时出现配置文件错误,需将配置文件中相关行改为绝对路径,可选择卸载重新安装服务,最后可通过http://localhost/访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载绿色版apache 本文已apache2.4为例

http://www.apachehaus.com/cgi-bin/download.plx



下载后解压 打开readme_first.html文件

能够看到假设是 xp则须要安装 vs 2008 sp1 和 vc2008  自己下载后更新



安装为服务

httpd.exe -k install



错误提示:

Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd.exe: Syntax error on line 39 of F:/develop/apache/2.4.9/conf/httpd.conf: ServerRoot must be a valid directory


改动38行改为绝对路径



卸载又一次安装服务或者不用管仅仅要改动好配置文件就能够的

我这里演示卸载又一次安装

卸载:httpd.exe -k uninstall



又一次安装



Errors reported here must be corrected before the service can be started.

提示信息:这里报告的错误必须纠正后服务才干启动。

(仅仅是给我们个友善的提示)


服务已被安装(右键服务名(Apache2.4)启动  假设比較懒:启动类型改为自己主动)




http://localhost/   



转载于:https://www.cnblogs.com/ldxsuanfa/p/10553005.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值