如何在macosx上删除apache的自动启动 [英] How to remove autostart of apache on macosx

查看:22
本文介绍了如何在macosx上删除apache的自动启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 macosx 狮子上.一项服务已在 localhost:8080 上启动并运行.

I'm on a macosx lion. A service is up and running on localhost:8080.

本服务是entreprisedb打包的apache+php.

This service is an apache + php packaged by entreprisedb.

如何删除自动启动?

推荐答案

1) 自动启动通常不在 User-Autostart-Items 中,但您还是应该检查它们:

1) The autostart is usually not in the User-Autostart-Items, but you should check them anyway:

打开系统偏好 > 用户 > 选择您的用户 > 起始对象

Open the System-Preferences > Users > Select your user > Start-Objects

检查是否有您想要停用的启动项,如果存在,请执行.

Check if there is something started you want to deactive and do so if.

2) 通常 apache 的启动是由 launchd-service 处理的:您可以手动更改它,也可以借助名为Lingon".要手动执行此操作,您需要找到 launchd 文件夹:

2) Normally the start of apache is handled by the launchd-service: You can either change this manually, or with the help of a old little tool named "Lingon". To do it manually, you need to find the launchd-folders:

~/Library/LaunchAgents
~/Library/LaunchDaemons

/Library/LaunchAgents
/Library/LaunchDaemons

/System/Library/LaunchAgents
/System/Library/LaunchDaemons

在那里你会找到 .plist 文件,它定义了何时开始以及什么开始.要从自动启动中删除对象,请在终端上使用 launchctl 将其从实际的 launchd 中删除,然后简单地删除文件.

There you'll find .plist-files, that define when and what to start. To remove a object from auto-start use launchctl on the terminal to remove it from the actual launchd and then simply delete the file.

user$ launchctl unload *filename.plist*

确保您没有删除错误的文件!这可能会导致您的机器出现致命情况.顺便说一句:.plist 文件可以使用 BBEditTextWranglerPropertyList Editor 来自 Apple 开发者工具.

Make sure you do not delete the wrong files! This may lead to a fatal situation on your machine. Btw: The .plist-Files can be read with BBEdit, TextWrangler or the PropertyList Editor from the Apple Developer-Tools.

这篇关于如何在macosx上删除apache的自动启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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