安装了 Windows 7 x64 English 版本,在搭建开发测试环境时,发现Apache官方根本没有提供64位的版本。几经搜索,发现在 blackdot.be 有人用 Visual Studio 2005编译了一个Apache64-bitbinaries。试了一下,在 Windows 7 64-bit上很好用。安装过程记录如下: Windows 7 x64 安装 Apache 64-bitBinaries详细步骤
5 f1 \" B5 I/ ?3 d# d9 B 1. 访问 Blackdot.be ::Apache64-bitBinaries,点击下方的链接httpd-2.2.13-win64.rar,下载 Apache64-bit的压缩包。% g+ L8 h ^. [1 b* M. S; d) z
2. 将压缩包解压到本地硬盘。例如我存放在 D:/Web/Tool/httpd-2.2-x64。
: }# v, ~( P4 Y0 a) A x* i8 D 3. 以管理员身份运行 DOS Command(Runasadministrator),进入D:/Web/Tool/httpd-2.2-x64。
- j+ v8 }+ O8 ^: s, O/ ?) T 4. 执行 httpd -k install:
" ~9 P8 t2 Z% \7 M# `# Y$ T# B6 ` D:\Web\Tool\httpd-2.2-x64\bin>httpd -k install
0 @, V; [ X6 s& V) O/ K Installing the Apache2.2 service6 Q7 k# Q# l! E I, B; q' m- F4 z3 `
The Apache2.2 service is successfully installed.- `8 [! F! [0 R
Testing httpd.conf...., U; e7 |( _' a5 c( ~
Errors reported here must be corrected before theservicecanbestarted.
" D U( u3 V9 N* X9 B4 O" [ httpd: Syntax error online35ofD:/Web/Tool/httpd-2.2-x64/conf/httpd.conf:) M% A. A* `! K
ServerRootmust be a valid directory- `, p) U7 }, p2 p' m0 C! }
在执行 httpd -k install 的时候,显示 The Apache2.2serviceissuccessfullyinstalled 表明已经安装成功。接下来的Testinghttpd.conf有可能会出错,例如我安装时报了ServerRoot must be avaliddirectory,不用理会。回头自己手工编辑httpd.conf, 将ServerRoot指向正确的目录即可。! q; Y( _& V+ r# [
5. 修改 httpd.conf 完成之后,执行 httpd -k start:# F9 U6 Z! u; a4 y/ s! j
D:\Web\Tool\httpd-2.2-x64\bin>httpd -k start
. m. n4 I: a' |8 L D:\Web\Tool\httpd-2.2-x64\bin>$ E4 |" V, N! x' d8 M
如果没有提示错误,则表明启动成功。
@% s: R- F& O( Z1 }6 ~ 当然你也可以执行完第2步之后,先将 httpd.conf 文件改好,再执行 httpd -k install和httpd-kstart。 |