cd /System/Library/LaunchDaemons/ //可以看到所有自动启动的plist文件
想关掉mac下apache的开机启动
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
如果想再打开:
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
系统的开机启动plist目录:/System/Library/LaunchDaemons/
用户的开启启动plist目录:/Library/LaunchDaemons/