2024年10月如何利用Windows 7 x64安装Apache 64-bitBinaries
⑴Windows 作为微软最新的操作系统,市场普及率正在稳步上升。作为一款全新的操作系统,Windows 新功能和新技巧自然不少。今天小编将为大家讲解Windowsx是如何安装Apache-bit的?
⑵安装了 Windows x English 版本,在搭建开发测试环境时,发现Apache官方根本没有提供位的版本。几经搜索,发现在 blackdot.be 有人用 Visual Studio 编译了一个Apache-bitbinaries。试了一下,在 Windows -bit上很好用。安装过程记录如下:
⑶Windows x 安装 Apache -bitBinaries详细步骤
⑷.访问 Blackdot.be ::Apache-bitBinaries,点击下方的链接httpd-..-win.rar,下载 Apache-bit的压缩包。
⑸.将压缩包解压到本地硬盘。例如我存放在 D:/Web/Tool/httpd-.-x。
⑹.以管理员身份运行 DOS mand(Runasadministrator),进入D:/Web/Tool/httpd-.-x。
⑺.执行 httpd -k install:
⑻D:WebToolhttpd-.-xbin>httpd -k install
⑼Installing the Apache. service
⑽The Apache. service is suessfully installed.
⑾Testing httpd.conf....
⑿Errors reported here must be corrected before theservicecanbestarted.
⒀httpd: Syntax error onlineofD:/Web/Tool/httpd-.-x/conf/httpd.conf:
⒁ServerRootmust be a valid directory
⒂在执行 httpd -k install 的时候,显示 The Apache.serviceissuessfullyinstalled 表明已经安装成功。接下来的Testinghttpd.conf有可能会出错,例如我安装时报了ServerRoot must be avaliddirectory,不用理会。回头自己手工编辑httpd.conf, 将ServerRoot指向正确的目录即可。
⒃.修改 httpd.conf 完成之后,执行 httpd -k start:
⒄D:WebToolhttpd-.-xbin>httpd -k start
⒅D:WebToolhttpd-.-xbin>
⒆如果没有提示错误,则表明启动成功。
⒇当然你也可以执行完第步之后,先将 httpd.conf 文件改好,再执行 httpd -k install和httpd-kstart。