Win64下安装Apache 2.4.7

来源:互联网 发布:nginx 子域名配置 编辑:程序博客网 时间:2024/06/09 05:45

系统环境:

Windows 7 x64 + Apache 2.4.7 64bit

下载地址:

http://www.apachelounge.com/download/win64/


1.将文件解压下来放到D盘或者C盘根目录

2.修改配置文件 d:/Apache24/conf/httpd.conf

修改ServerRoot、DocumentRoot、Directories,ScriptAlias改为你的Apache目录的地址

(可以ctrl+f,直接查找修改)

3.进入CMD命令行,进入Apache的bin目录

4.输入 httpd.exe -k install 进行安装,会看到 successfully installed

5.几个命令:

httpd.exe -k start 启动

httpd.exe -k stop 停止

httpd.exe -k restart 重启

6.在浏览器输入 localhost 即可进入“It works”页面

0 0
原创粉丝点击