您的位置:首页 > 运维架构 > Apache

win64位安装Apache

2017-03-16 16:09 148 查看
我下载Apache的网址  http://download.csdn.net/download/yetilion/4468168(花了我一块大洋-_-)

安装  http://os.51cto.com/art/201001/175637.htm

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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: