2.配置httpd服务
打开C:\Windows\System32目录,选中cmd.exe右击以“管理员身份运行”(如果不以管理员身份运行,将报:Failed to open the WinNT service manager的错误),输入httpd -k install命令把apache安装成windows后台服务。
保存之后再重新启动apache。
2.还可以利用ApacheMonitor来启动apache。
The Apache Monitor is a desktop tray application that allows you to monitor the existence of a running Apache service and easily start, stop and restart Apache. To use it just double click on the ApacheMonitor.exe in the \Apache24\bin folder. If you want it to start automatically for you when you log into the computer, just drag a copy into the Startup folder in Window's Start Menu.
双击运行bin目录下的ApacheMonitor.exe,即可运行ApacheMonitor.exe,运行后在电脑的右下角看到Apache的图标,也可通过这个来启动、停止、重启Apache服务。