命令行启动apache报[Wed Feb 27 08:59:16.975349 2019] [mpm_winnt:error] [pid 3532:tid 556] (OS 2)系统找不到指定的文件

本文介绍了解决Apache服务启动时遇到的错误步骤。首先,确保在管理员权限下打开命令行,并进入Apache的bin目录。然后,使用httpd.exe-kinstall命令进行安装,最后再尝试启动服务。文章还提供了启动、停止和重启Apache服务的命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误场景

我们在命令行输入:httpd -k start启动Apache报错:
在这里插入图片描述

解决方案

1、以管理员身份打开cmd
2、cd到D:\phpStudy\Apache\bin(自己电脑里Apache的bin目录下)
3、运行httpd.exe -k install -n "Apache2.4该命令:
在这里插入图片描述
说明安装成功。
4、再次启动httpd -k start
5、成功:
在这里插入图片描述
命令扩展:
httpd -k start:开启Apache服务
httpd -k stop:停止Apache服务
httpd -k rstart:重启Apache服务

[Sun Jun 29 14:55:13.531112 2025] [core:error] [pid 27208:tid 1168] [client ::1:61472] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Sun Jun 29 14:56:16.227311 2025] [core:error] [pid 27208:tid 1148] [client ::1:61485] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Sun Jun 29 15:04:18.703894 2025] [core:warn] [pid 35516:tid 364] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:04:18.862470 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:04:18.862470 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:04:18.862470 2025] [core:notice] [pid 35516:tid 364] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:04:18.873441 2025] [mpm_winnt:notice] [pid 35516:tid 364] AH00418: Parent: Created child process 37656 [Sun Jun 29 15:04:21.226512 2025] [mpm_winnt:notice] [pid 37656:tid 320] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:07:19.452902 2025] [core:warn] [pid 29396:tid 396] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:07:19.567596 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:07:19.567596 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:07:19.567596 2025] [core:notice] [pid 29396:tid 396] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:07:19.579564 2025] [mpm_winnt:notice] [pid 29396:tid 396] AH00418: Parent: Created child process 37736 [Sun Jun 29 15:07:21.852612 2025] [mpm_winnt:notice] [pid 37736:tid 332] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:07:32.462402 2025] [core:error] [pid 37736:tid 1180] [client ::1:61597] AH00126: Invalid URI in request 'index.php' 'GET /web/UserLogin/accountLogin HTTP/1.1' [Sun Jun 29 15:07:50.674094 2025] [core:error] [pid 37736:tid 1176] [client ::1:61598] AH00126: Invalid URI in request 'index.php' 'GET /web/UserLogin/accountLogin HTTP/1.1' [Sun Jun 29 15:08:28.424576 2025] [core:warn] [pid 25176:tid 336] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sun Jun 29 15:08:28.539271 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00455: Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 configured -- resuming normal operations [Sun Jun 29 15:08:28.539271 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00456: Apache Lounge VS17 Server built: Oct 18 2023 13:03:18 [Sun Jun 29 15:08:28.539271 2025] [core:notice] [pid 25176:tid 336] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Sun Jun 29 15:08:28.574179 2025] [mpm_winnt:notice] [pid 25176:tid 336] AH00418: Parent: Created child process 12320 [Sun Jun 29 15:08:30.762870 2025] [mpm_winnt:notice] [pid 12320:tid 352] AH00354: Child: Starting 64 worker threads. [Sun Jun 29 15:09:23.908308 2025] [core:error] [pid 12320:tid 1184] [client ::1:61618] AH00126: Invalid URI in request 'index.php' 'GET /web/Index/thinkPHP8 HTTP/1.1'
最新发布
06-30
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值