在 macOS 上完全卸载 apachectl

0 apache macos command-prompt uninstallation

我通过brew apache2安装(brew install apache2),但后来卸载了它(brew uninstall apache2),但现在命令apachectl仍然存在。我该如何摆脱它?

Mar*_*ell 5

Apple 提供了一个apachectl二进制文件作为 的一部分macOS,因此我怀疑您所看到的就是那个二进制文件 - 我当然不会建议您删除它。

要进行检查,请在终端中运行以下命令:

type apachectl
apachectl is /usr/sbin/apachectl
Run Code Online (Sandbox Code Playgroud)

如果你像我上面那样得到了一个/usr/sbin,那就是苹果提供的。不要管它。

如果您得到其他信息,请点击edit您的答案并使用新信息更新问题。