您的位置:首页 > 大数据 > 人工智能

Apache之——命令行启动出现Failed to open the Apache2.2 Service解决方案

2015-08-30 22:01 543 查看
转载请注明出处:/article/8380869.html

Apache命令行启动[关闭|重启]的命令是:httpd -k start[stop|restart]

出现Failed to open the Apache2.2 Service。其实是权限问题,可以通过以下方法解决:

打开运行 找到cmd ,右键打开cmd.exe ,选择以管理员身份运行

D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install


下面是它的输出log

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启动即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: