启动服务
进入Apache24\bin,执行 httpd.exe -k install
会打印提示信息:
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
Errors reported here must be corrected before the service can be started.提示这句是因为httpd.conf文件没有配置好,但服务已经成功开启了,这里可以配置下,也可以以后一起配置。
停止服务
执行 httpd.exe -k start