我通过brew apache2(brew install apache2)安装了它,但后来卸载了它(brew uninstall apache2),但现在仍然留下了apachectl命令。我怎么才能摆脱它?
brew install apache2
brew uninstall apache2
apachectl
whlutmcx1#
苹果提供了一个apachectl二进制文件作为macOS的一部分,所以我怀疑你看到的就是那个-我当然不会建议你删除它。要检查,请在终端中运行以下命令:
macOS
type apachectlapachectl is /usr/sbin/apachectl
type apachectl
apachectl is /usr/sbin/apachectl
字符串如果你像我上面那样得到/usr/sbin中的一个,那就是Apple提供的一个。别管了如果您得到了其他信息,请单击您的答案下的edit,并使用新信息更新问题。
/usr/sbin
edit
1条答案
按热度按时间whlutmcx1#
苹果提供了一个
apachectl
二进制文件作为macOS
的一部分,所以我怀疑你看到的就是那个-我当然不会建议你删除它。要检查,请在终端中运行以下命令:
字符串
如果你像我上面那样得到
/usr/sbin
中的一个,那就是Apple提供的一个。别管了如果您得到了其他信息,请单击您的答案下的
edit
,并使用新信息更新问题。