win7环境下安装apache

来源:互联网 发布:vba的数组查询 编辑:程序博客网 时间:2024/04/28 10:50
今天在安装apache_2.2.4-win32-x86-no_ssl.msi时出现Failed to open the Apache2.2 Service。其实是权限问题,可以通过以下方法解决:
打开运行 找到cmd ,右键打开cmd.exe ,选择以管理员身份运行

D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
然后在服务里,把apache启动即可。
 
原创粉丝点击