zhongyuan

 

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的开机启动

分类:

技术点:

相关文章:

  • 2021-12-10
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2021-12-08
  • 2021-12-03
  • 2021-12-06
  • 2021-12-06
相关资源
相似解决方案