Mac 操作系统上的 XAMPP - Apache 无法启动

Bar*_*ara 4 apache xampp macos

我知道这个问题被问了很多,但我仍然无法找到解决方案。

我使用的是 Mac 操作系统,我正在尝试在 XAMPP 上启动 Apache。

sudo apachectl stop按照这里的解释进行了尝试,但没有成功。

终端说/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service

XAMPP 应用程序日志显示

Starting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
Stderr:
AH00544: httpd: bad group name Barbara
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

小智 5

如果没有运行 plist,则意味着 apache 没有运行,有时人们已经运行了 apache,然后尝试使用 xampp。现在他们尝试在同一台 Mac 上的两个地方运行 apache。plist 告诉你它没有启动并运行,所以我建议尝试启动你想要的 apache。

对于 xampp 堆栈,请在终端中尝试此操作

sudo /Applications/XAMPP/xamppfiles/bin/apachectl start