mac开机启动原理--apache

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/

launchd是Mac OS下,用于初始化系统环境的关键进程。类似Linux下的init, rc.此方法同样也适用于禁用系统的一些服务,比如打印机,蓝牙等.

mac下添加nginx的plist的实例:

http://www.cnblogs.com/zhongyuan/p/3313106.html 

相关链接:

https://liuzhichao.com/p/1667.html  //mac下去掉apache的开机启动

原文地址:https://www.cnblogs.com/zhongyuan/p/5490135.html