mac开机启动原理--apache

 

cd  /System/Library/LaunchDaemons/     //能够看到全部自动启动的plist文件html

想关掉mac下apache的开机启动nginx

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plistapache

若是想再打开:htm

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plistblog

 

系统的开机启动plist目录:/System/Library/LaunchDaemons/进程

用户的开启启动plist目录:/Library/LaunchDaemons/it

 

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

 

mac下添加nginx的plist的实例:文件

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

 

相关连接:

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

相关文章
相关标签/搜索