OS X下使用Homebrew来管理服务

• 本文约226字,阅读大致需要1分钟 • Tips, Tools

使用Homebrew时,经常有一系列的服务要安装启动,通常的做法是copy一个plist文件到~/Library/LaunchAgents目录下再launchctl load一下,比较麻烦。

今天发现了一个不错的玩意-brew services

  1. 安装: brew tap gapple/services
  2. 使用: brew services restart mysql

下面是我的brew services list

而且这个还可以帮助清理brew services cleanup,居家旅行必备。

参考来源:Starting and Stopping Background Services with Homebrew