Windows 7 x64安装Apache 64-bit很简单

系统
安装了 Windows 7 x64 English 版本,在搭建开发测试环境时,发现Apache官方根本没有提供64位的版本。

  安装了 Windows 7 x64 English 版本,在搭建开发测试环境时,发现Apache官方根本没有提供64位的版本。几经搜索,发现在 blackdot.be 有人用 Visual Studio 2005编译了一个Apache64-bitbinaries。试了一下,在 Windows 7 64-bit上很好用。安装过程记录如下:

Windows 7 x64安装Apache 64-bit很简单

Windows 7 x64 安装 Apache 64-bitBinaries详细步骤

  1. 访问 Blackdot.be ::Apache64-bitBinaries,点击下方的链接httpd-2.2.13-win64.rar,下载 Apache64-bit的压缩包。

  2. 将压缩包解压到本地硬盘。例如我存放在 D:/Web/Tool/httpd-2.2-x64。

  3. 以管理员身份运行 DOS Command(Runasadministrator),进入D:/Web/Tool/httpd-2.2-x64。

  4. 执行 httpd -k install:

  D:\Web\Tool\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 theservicecanbestarted.

  httpd: Syntax error online35ofD:/Web/Tool/httpd-2.2-x64/conf/httpd.conf:

  ServerRootmust be a valid directory

  在执行 httpd -k install 的时候,显示 The Apache2.2serviceissuccessfullyinstalled 表明已经安装成功。接下来的Testinghttpd.conf有可能会出错,例如我安装时报了ServerRoot must be avaliddirectory,不用理会。回头自己手工编辑httpd.conf, 将ServerRoot指向正确的目录即可。

  5. 修改 httpd.conf 完成之后,执行 httpd -k start:

  D:\Web\Tool\httpd-2.2-x64\bin>httpd -k start

  D:\Web\Tool\httpd-2.2-x64\bin>

  如果没有提示错误,则表明启动成功。

  当然你也可以执行完第2步之后,先将 httpd.conf 文件改好,再执行 httpd -k install和httpd-kstart。

责任编辑:庞桂玉 来源: Tom
相关推荐

2009-08-18 09:10:36

Windows 7 UX64繁体中文版

2009-08-08 09:07:57

Windows 7 P64位下载

2009-08-14 09:31:27

2009-06-12 09:10:35

Windows 7微软下载

2009-02-17 21:14:26

Ubuntu 8.10AdobeFlash

2009-08-08 09:09:06

Windows 7 U64位下载

2009-03-04 09:10:53

Windows 7Beta7048x64和703

2020-12-11 08:48:21

Windows操作系统功能

2021-06-29 13:00:11

微软Windows 11Windows

2011-08-24 15:55:04

2023-06-01 08:25:19

Windows 10Tiny10

2023-09-21 08:46:44

操作系统windows 10内存

2023-03-26 20:31:01

x64程序参数

2021-07-06 05:26:35

微软 ARM Office

2009-06-25 09:03:42

Linux

2011-08-17 18:00:15

SQL Server MDS

2009-08-11 09:24:03

Windows 764位计算

2009-12-10 18:13:08

Sun

2020-12-27 08:57:54

Windows10操作系统 x64 应用

2009-12-10 09:24:06

SunX64AMD
点赞
收藏

51CTO技术栈公众号