php 找不到指定的程序,安装apache 提示系统找不到指定文件 No installed service name '...

问题:第一次在win xp sp3 下 安装apache,

启动后出现: 系统找不到指定文件 No installed service name 'Apache2',

原因:系统服务中没有apache2服务

解决方法:

开始 --运行 --- 输入“CMD”出来DOS窗口----

输入 cd D:/Program Files/Apache Group/Apache2/bin

定位到这个目录下(这是我的apache安装目录:找到 apache2 目录下的 bin 目录 有个apache.exe

文件,因为我们要用到apache.exe应用程序 )

再输入 apache.exe -k install -n apache2

接着就有了apache2这个服务了~~

如果提示错误:Syntax error on line 198 httpd.conf: ServerAdmin takes

one argument

启动Apache Start时出现异常:

Syntax error on line 198 of C:/Program Files/Apache

Group/Apache2/conf/httpd.conf:

ServerAdmin takes one argument, The email address of the server

administrator

解决方法:

# ServerAdmin: Your address, where problems with the server should

be

# e-mailed. This address appears on some server-generated pages,

such

# as error documents. e.g.

#

ServerAdmin改为:

# ServerAdmin: Your address, where problems with the server should

be

# e-mailed. This address appears on some server-generated pages,

such

# as error documents. e.g.

#ServerAdmin

配置完毕后:

运行--->cmd-->键入: d: 注释:进入D盘,由于我的apache安装在D盘键入: cd

apache2 注释:进入D:\apache2\目录

键入: cd

bin 注释:进入D:\apache2\bin\

目录

键入: httpd.exe -k install -n

apache2 注释:添加了apache这个服务了,下面我们要启动它

键入: net start

apache2 注释:启动apache2服务

关闭服务器是: net stop apache2OK,问题解决

输入net start apache2 就可以运行apache服务

输入net stop apache2 就关闭apache服务

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值