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 | 删除无用的服务 |