1. 程式人生 > >防止Mac程式開機自啟動

防止Mac程式開機自啟動

Mac程式開機自啟動

根據apue
mac上可以通過launchctl命令控制守護程序

在man lauchctl中可以看到

/Library/LaunchAgents 內包含root許可權的
$HOME/Library/LaunchAgents 內包含自己許可權的

這些配置檔案是plist

FILES
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the adminis-
trator.
/Library/LaunchDaemons System wide daemons provided by the admin-
istrator.
/System/Library/LaunchAgents OS X Per-user agents.
/System/Library/LaunchDaemons OS X System wide daemons.

直接把相應plist刪除就可以防止其開機自啟動