Mac 停掉自带的Apache服务
停掉服务
% sudo apachectl stop
再次搜索,没有了
% ps -ef | grep httpd
501 12767 705 0 11:18下午 ttys001 0:00.00 grep httpd

卸载自启动
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
可能会报错,不用管。
% sudo apachectl stop
再次搜索,没有了
% ps -ef | grep httpd
501 12767 705 0 11:18下午 ttys001 0:00.00 grep httpd

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
可能会报错,不用管。