在MacOS塞拉利昂,我安装的Apache使用自制:如何完全卸载Homebrew Apache httpd24?
$ brew install httpd24
这引起了一些奇怪的Apache问题。看来,在macOS Sierra上Apache的默认安装仍然以某种方式激活。我现在想彻底卸载httpd24,但我仍然在我的进程中看到它。下面是我所做的:
$ brew unlink httpd24
$ brew uninstall httpd24
运行$ ps aux|grep httpd
显示:
blt 51473 0.0 0.0 2613988 844 ?? S 10:48PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51447 0.0 0.0 2613988 892 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51396 0.0 0.0 2613988 856 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51345 0.0 0.0 2613988 844 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51285 0.0 0.0 2613988 876 ?? S 10:45PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51048 0.0 0.0 2615200 868 ?? S 10:34PM 0:00.00 /usr/sbin/httpd -T
blt 51047 0.0 0.0 2615200 840 ?? S 10:34PM 0:00.00 /usr/sbin/httpd -T
blt 51046 0.0 0.1 2628716 20104 ?? S 10:34PM 0:00.06 /usr/sbin/httpd -T
blt 51045 0.0 0.1 2628716 20084 ?? S 10:34PM 0:00.05 /usr/sbin/httpd -T
blt 51044 0.0 0.1 2628716 20148 ?? S 10:34PM 0:00.04 /usr/sbin/httpd -T
blt 51043 0.0 0.1 2628716 20236 ?? S 10:34PM 0:00.05 /usr/sbin/httpd -T
blt 51041 0.0 0.1 2628716 20668 ?? S 10:34PM 0:00.07 /usr/sbin/httpd -T
blt 51040 0.0 0.4 2644668 59852 ?? S 10:34PM 0:01.05 /usr/sbin/httpd -T
root 47136 0.0 0.1 2615456 18872 ?? Ss 5:34PM 0:00.67 /usr/sbin/httpd -T
root 43442 0.0 0.0 2614244 7172 ?? Ss 4:14PM 0:00.83 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 52451 0.0 0.0 2423384 256 s003 R+ 11:06PM 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn httpd
与路径/usr/sbin/httpd
的过程默认的Apache安装。具有路径/usr/local/Cellar/httpd24/2.4.23_2/bin/httpd
的是Homebrew安装。这应该不可能。目录/usr/local/Cellar/httpd24
甚至不存在。我试图手动杀死这些进程,但他们最终回来。我试过重新启动我的电脑。我无数次地重启了Apache。我已经确认,我在命令行上使用$ apachectl
进行交互的Apache是默认安装。我不知道还有什么要做。感谢您的任何帮助。
考虑到它在重新启动后仍然存在。您是否检查过任何可能的Homebrew httpd24安装剩余物的'〜/ Library/LaunchAgents'和'/ Library/LaunchDaemons'和'/ Library/LaunchAgents'? – Montmons