第一步:
下载文件
地址:https://httpd.apache.org/docs/current/platform/windows.html
第二步:解压文件,保存到某个文件下
第三步:进入到apche>conf目录下找到httpd.conf,修改其中一项
将红线部分的路径换成自己保存apache的路径,注意斜杠要改为‘/’
第四步:以管理员身份运行cmd,运行方式为win+r,输入cmd后,不按回车,而是按ctrl +shif +enter
再进入到bin目录
C:\Program Files (x86)\Apache\bin
再输入httpd -k install -n “Apache”
显示成功则ok,
最后启动即可
httpd.exe -k start