#下載地址
https://www.apachehaus.com/cgi-bin/download.plx#MODULES24VC14
#下載解壓,cmd到根目錄
#修改配置文件
C:\Users\changl\Desktop\httpd-2.4.41-o111c-x64-vc15-r2\Apache24\conf\httpd.conf
第39行,
Define SRVROOT "C:\httpd-2.4.41-o111c-x64-vc15-r2/Apache24"
#啓動和停止命令
1、安裝服務
httpd.exe -k install
2、卸載服務
httpd.exe -k uninstall
3、啓動服務
httpd.exe -k start -n "apache2.4"
httpd.exe -k stop -n "apache2.4"