错误:Apache 意外关闭。尝试了一切,仍然发生

时间:2021-02-19 11:48:22

标签: mysql apache cmd xampp

我在 XAMPP 中遇到以下错误:

1:33:22 PM  [Apache]    Error: Apache shutdown unexpectedly.
1:33:22 PM  [Apache]    This may be due to a blocked port, missing dependencies, 
1:33:22 PM  [Apache]    improper privileges, a crash, or a shutdown by another method.
1:33:22 PM  [Apache]    Press the Logs button to view error logs and check
1:33:22 PM  [Apache]    the Windows Event Viewer for more clues
1:33:22 PM  [Apache]    If you need more help, copy and post this
1:33:22 PM  [Apache]    entire log window on the forums

昨天晚上,Apache 工作正常,而 PHP 和 MySQL 正常。今天,MySQL 启动了,但 Apache 没有。

我运行的是 Apache 2.4。

CMD 上没有出现Apache和MySQL(当我输入sc delete "MySQL"时,返回的是:指定的服务不作为已安装的服务存在。 )。但是,XAMPP 可以启动它们。

我从字面上搜索了我可以在网上找到的每篇文章。一切都建议我更改端口。

我的端口是 81。

我的 SSL 端口是 10443。

netstat -ano | findstr :81 什么都不返回。

也是如此 netstat -ano | findstr :10443.

我重新启动了我的电脑 5 次,试图在每一个中启动 Apache。

我几乎从不在这里提问,因为我试图自己解决问题,但这太疯狂了。我花了我生命中的 1:30 小时试图解决这个问题,但仍然没有任何反应。

昨天我禁用了 IPv6,我才想起来。

我重新启用了它。尽管如此,什么也没发生。


更新 - 2/19/2020 - 14:02:

我再也受不了了。我将 htdocs 移到我的桌面并卸载了 XAMPP。我重新安装并记得 MySQL 没有保存 :( 无论如何,我启动了 XAMPP,现在一切正常!

请帮帮我。如果我发现或尝试其他任何方法,我会更新这个问题。

0 个答案:

没有答案