1、下载服务器
下载地址:https://www.apachelounge.com/download/。
2、将文件解压,我的解压地址是C:\Apache
3、修改httpd.conf文件
我这里将端口改为9090
4、以管理员身份运行命令提示符窗口
5、切换到apache的bin目录下 cd C:\Apache\Apache24\bin
6、执行安装命令 httpd.exe -k install
7、运行命令
net start apache2.4 ~Apache服务启动命令
8、浏览器输入地址 127.0.0.1:9090,如果是一下页面说明安装并启动成功
9、停止命令
net stop apache2.4 ~Apache服务停止命令