如何撤消launchctl命令?

时间:2014-10-17 23:17:02

标签: macos terminal macports launchd

我希望撤消以下命令:

sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql55-server.plist

我试过了:

sudo launchctl remove /Library/LaunchDaemons/org.macports.mysql55-server.plist

但是,我收到以下错误:

launchctl remove error: No such process

导航到/ Library / LaunchDaemons目录后,我验证了org.macports.mysql5-server.plist位于那里。

如何删除此服务?

1 个答案:

答案 0 :(得分:1)

你无法在launchctl中真正“撤消”某些东西,但你可能想要做的是禁用你之前加载的守护进程。做:

sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql55-server.plist