- 访问 Blackdot.be :: Apache 64-bit Binaries
,点击下方的链接 httpd-2.2.13-win64.rar,下载 Apache 64-bit 的压缩包。
- https://blackdot.be/download-archive/
- 将压缩包解压到本地硬盘。例如我存放在 D:/dev/httpd-2.2-x64。
- 以管理员身份运行 DOS Command (Run as administrator),进入 D:/Web/Tool/httpd-2.2-x64。
- 执行 httpd -k install:D:/dev/httpd-2.2-x64/bin/httpd -k install
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Syntax error on line 35 of D:/dev/httpd-2.2-x64/conf/httpd.conf:
ServerRoot must be a valid directory在执行 httpd -k install 的时候,显示 The Apache2.2 service is successfully installed 表明已经安装成功。接下来的 Testing httpd.conf 有可能会出错,例如我安装时报了 ServerRoot must be a valid directory,不用理会。回头自己手工编辑 httpd.conf, 将 ServerRoot 指向正确的目录即可。 - 修改 httpd.conf 完成之后,执行 httpd -k start:D:/dev/httpd-2.2-x64/bin/httpd -k start如果没有提示错误,则表明启动成功。
当然你也可以执行完第2步之后,先将 httpd.conf 文件改好,再执行 httpd -k install 和 httpd -k start
x64架构下,使用apache
最新推荐文章于 2024-07-08 09:57:31 发布