Win下apache出现问题:“No services installed” || apache服务启动

安装完apache之后(不是按照默认路径安装的,我的是 D:\ )右下方哪个小羽毛图标是没有启动的,左键不好使,而且提示“No services installed”,提示服务器没有被安装。

  解决方法: 找到 apache2.2 目录下的 bin 目录 有个apache.exe 文件,我们在运行中键入: cmd 出来DOS窗口,

  键入: d:\      注释:进入D盘,由于我的apache安装在D盘

  键入: cd apache2.2      注释:进入D:\apache2\目录

  键入: cd bin       注释:进入D:\apache2.2\bin\ 目录

  键入: httpd.exe -k install -n apache2.2       注释:添加了apache这个服务了,下面我们要启动它

  键入: net start apache2.2         注释:启动apache2服务 关闭服务器是:net stop apache2.2

  OK,问题解决

 

注意! 删除 apache 服务可用如下语句:

     sc delete apache2.2



 小技巧:

把下面的语句保存为.bat文件形式,放在桌面上,当双击它就可起到“重启Apache服务”的作用:

net stop apache2.2
net start apache2.
2

 

 

  

转载于:https://www.cnblogs.com/qiantuwuliang/archive/2009/06/27/1512245.html

D:\apache\apache\bin>httpd.exe -k install [Wed Apr 16 16:02:20.869711 2025] [mpm_winnt:error] [pid 340:tid 436] AH00433: Apache2.4: Service is already installed. D:\apache\apache\bin>httpd.exe -k uninstall Removing the 'Apache2.4' service (OS 1072)指定的服务已标记为删除。 : AH00374: Failed to delete the 'Apache2.4' service D:\apache\apache\bin>httpd.exe -k install [Wed Apr 16 16:02:37.550949 2025] [mpm_winnt:error] [pid 17384:tid 432] AH00433: Apache2.4: Service is already installed. D:\apache\apache\bin>httpd.exe -k restart AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host.example.com] does not exist AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host2.example.com] does not exist AH00526: Syntax error on line 92 of D:/apache/apache/conf/extra/httpd-ssl.conf: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?). D:\apache\apache\bin>httpd -t AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host.example.com] does not exist AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host2.example.com] does not exist AH00526: Syntax error on line 92 of D:/apache/apache/conf/extra/httpd-ssl.conf: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?). D:\apache\apache\bin>httpd -k restart AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host.example.com] does not exist AH00112: Warning: DocumentRoot [D:/apache/apache/docs/dummy-host2.example.com] does not exist AH00526: Syntax error on line 92 of D:/apache/apache/conf/extra/httpd-ssl.conf: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
最新发布
04-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值