homebrew/services

homebrew/services仓库源:https://github.com/Homebrew/homebrew-services

homebrew/services扩展了一个services子命令。

brew services用来管理系统服务。

brew services底层调用的是launchd

brew services命令的使用格式是:brew services <sub-command>

命令说明
[sudo] brew services list列出当前用户的所有服务
[sudo] brew services run <formula>设置为非开机启动的服务,并运行该服务
[sudo] brew services start <formula>设置为开机启动的服务,并运行该服务
[sudo] brew services stop <formula>停止服务
[sudo] brew services restart <formula>设置为开机启动的服务,并运行该服务
[sudo] brew services cleanup删除无用的服务