【www.bbyears.com--apache】
word-wrap: break-word; margin: 5px 0px; color: rgb(0, 0, 0); font-family: " sans="" font-size:="" font-style:="" font-variant-ligatures:="" a="" href="/fw/photo.html" target="_blank" :="" font-weight:="" letter-spacing:="" orphans:="" text-align:="" text-indent:="" text-transform:="" white-space:="" widows:="" word-spacing:="" -webkit-text-stroke-width:="">我这次环境配置安装的是Apache-2.4.23版本!
1.首先将下载的压缩包解压到你的专门的WAMP环境文件夹,这样以后查找起来比较方便:
2.启动cmd: 如果你和我一样用的Win10,需要右键以管理员身份运行,如图,切换到Apache所在目录.
httpd.exe -h可以查看可以使用的命令.
3.使用httpd.exe -k install安装Apache.这时候会报服务器路径错误:
4.在httpd.conf文件中修改服务器路径.
5.启动Apache:httpd.exe -k start(或者直接写httpd -k start).
6.在服务中,查看是否已启动.
7.测试是否能使用,访问localhost.
8.安装OK!为了以后启动方便,我喜欢将bin目录下ApacheMonitor.exe发送快捷方式到桌面.以后启动Apache直接双击它就够了!