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

查看:33
本文介绍了如何在 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天全站免登陆