【发布时间】:2019-12-11 12:50:29
【问题描述】:
所以在昨天的 Windows 更新之前,我能够顺利运行 Wamp64 Server。然而,今天它给出了“1 of 2 services running”的消息。
调查表明 MySQL 8.0.14 正在运行,但 Apache 2.4.23 没有。
这是我迄今为止尝试过的:
- 重新启动计算机并重新启动 Wamp
- 完全关闭计算机并重新启动 Wamp
- 在 Wamp 菜单中点击“开始/恢复服务”
- 点击 Wamp 菜单中的“安装服务”(然后启动/恢复服务)
- 在 Wamp 菜单中点击“卸载服务”,然后点击“安装服务”(然后启动/恢复服务)
- 同时执行这两项操作并重新启动
- 调查 Apache 错误日志:
[Fri Aug 02 18:30:25.703267 2019] [core:warn] [pid 1376:tid 620] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Aug 02 18:30:25.711267 2019] [auth_digest:notice] [pid 1376:tid 620] AH01757: generating secret for digest authentication ...
- 在此之前在日志中进行调查:
[Thu Aug 01 18:33:16.532470 2019] [mpm_winnt:notice] [pid 22072:tid 660] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu Aug 01 18:33:18.849146 2019] [mpm_winnt:notice] [pid 28536:tid 588] AH00364: Child: All worker threads have exited.
[Thu Aug 01 18:33:24.784874 2019] [mpm_winnt:notice] [pid 22072:tid 660] AH00430: Parent: Child process 28536 exited successfully.
- 谷歌搜索这些错误,看看我是否能找到任何东西(不幸的是相对不成功)
- 禁用 Skype(以释放 80 端口)并重做上述大部分操作
- 从管理命令行运行以下命令:
apacha2.4.23\bin\httpd.exe -k install
apacha2.4.23\bin\httpd.exe -k start
apacha2.4.23\bin\httpd.exe -k wampapache64 -k start
apacha2.4.23\bin\httpd.exe -e warn
这肯定会启动服务,但随后会立即给出有关未正确关闭的错误。
任何建议都将不胜感激,我通过 Wamp 安装了一个大型本地 wiki,我真的不想失去对它的访问权限。
其他信息
- Wamp64
- Wampserver 3.1.7
- phpMyAdmin 4.8.4
- MySQL 8.0.14
- Apache 2.4.23
- 系统
- 操作系统:Microsoft Windows 10 主页
- 版本:10.0.18362 Build 18362
- 系统类型:x64
- 可用物理内存:11.2 GB
- 磁盘上的可用空间:19.3 GB(在 C: 上)、115 GB(在 D: 上,安装了 Wamp)
谢谢!
编辑 1:
这里建议的是问题开始那天的错误消息:
还有一个从今天开始:
编辑 2:
所以关于下面的一个很好的答案,我做了以下事情(不幸的是,仍然注意到工作,但这感觉像是进步):
我运行以下没有错误:
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
.\wamp64\bin\apache\apacha2.4.23\bin\httpd.exe -e warn
接下来我跑了:
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k stop
The 'Apache2.4' service is not started.
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k uninstall
Removing the 'Apache2.4' service
The 'Apache2.4' service has been removed successfully.
然后我重新启动了我的电脑。
之后,我从http://wampserver.aviatechno.net/#vcpackages 下载了Checks VC++ packages installed 文件(check_vcredist)。运行它注意到没有安装 Visual C++ 2015-2019 x86 Minimum Runtime - 14.22.27821 和 Visual C++ 2015-2019 x64 Minimum Runtime - 14.22.27821,所以我从同一个 URL 安装了它们(VC 2015-2019 (VC16 x86) 14.22.27821 和 VC 2015-2019 (VC16 x64) 12.22.27821)。
然后我再次重新启动我的电脑并运行 WAMP64,不幸的是它仍然给出了 1 of 2 services running 错误。
但是,我仍然在日志文件中收到类似的错误 (apache_error.log):
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 12936:tid 548] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Aug 22 14:47:59.335006 2019] [auth_digest:notice] [pid 12936:tid 548] AH01757: generating secret for digest authentication ...
[Thu Aug 22 14:48:34.000409 2019] [core:warn] [pid 31212:tid 584] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
编辑 3:
现在我得到以下信息:
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
[Thu Aug 22 15:13:02.139389 2019] [mpm_winnt:error] [pid 6824:tid 484] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
[Thu Aug 22 15:13:28.453760 2019] [mpm_winnt:error] [pid 1348:tid 488] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k stop
[Thu Aug 22 15:13:40.899096 2019] [mpm_winnt:error] [pid 11400:tid 164] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k uninstall
[Thu Aug 22 15:14:13.829391 2019] [mpm_winnt:error] [pid 13820:tid 468] (OS 2)The system cannot find the file specified. : AH00436: No installed service named "Apache2.4".
【问题讨论】:
-
查看 Windows 事件查看器以获取来自 Apache 的错误消息。他们怎么说,问题开始时的原始版本以及您安装 2 个 Apache 服务时的最新版本
-
@RiggsFolly 抱歉花了这么长时间,我在上面发布了消息!
标签: wampserver apache2.4 wamp64