确保你已经安装了Visual C++重新发布的Visual Studio 2017。最低系统要求:-----------------------Windows 7 SP1Windows 8 / 8.1Windows 10Windows Server 2016Windows Server 2008 R2 SP1 Windows Server 2012 / R2Windows Vista SP2
工具/原料
httpd-2.4.29-Win64-VC15.zip
方法/步骤
1
下载:httpd-2.4.29-Win64-VC15.zip链接: https://pan.baidu.com/s/1eTIFOxO 密码: s7y5官网Files for Microsoft Windows:http://httpd.apache.org/docs/current/platform/windows.html#down
2
解压后Apache24文件夹,复制到C盘根目录
3
打开运行,输入cmd,点击确定
4
输入命令:cd C:\Apache24\bin打开bin目录
5
输入命令:httpd.exe -k install在系统服务中添加apache的服务,这时候报错了,提示需要以管理员身份运行
6
打开C:\Windows\System32文件夹找到cmd.exe,右键以管理员身份运行或者直接搜索cmd
7
重复步骤4和5,提示安装成功
8
打开运行,输入services.msc,点击确定在服务列表找到了Apache2.4,点击右键,选择启动
9
打开浏览器,输入网址:http://localhost/页面出现It works!到此安装结束
注意事项
1
默认端口号为80,如果被占用,可修改C:\Apache24\conf下的httpd.conf,将所有80的端口改成8080
2
在 DOS 窗口启动 apache : >httpd.exe
上一篇:tomcat的安装