如何在Mac Mavericks上永久停止Apache? [英] How to stop apache permanently on mac Mavericks?

查看:94
本文介绍了如何在Mac Mavericks上永久停止Apache?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac上安装zend服务器,需要卸载Mavericks自动随附的apache服务器,以便改用Zend随附的Apache服务器.是否可以阻止它在启动时运行或永久删除?

I'm trying to install zend server on mac and need to uninstall the apache server that is auto included with Mavericks so that the Apache server included with Zend is used instead. Can it be prevented from running on startup or permanently removed?

推荐答案

尝试一下:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

这将停止正在运行的Apache实例,并记录不应重新启动它.它会在/private/var/db/launchd.db/com.apple.launchd/overrides.plist中记录您的偏好.

This will stop a running instance of Apache, and record that it should not be restarted. It records your preference in /private/var/db/launchd.db/com.apple.launchd/overrides.plist.

这篇关于如何在Mac Mavericks上永久停止Apache?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆