brew services
(一般服务)将在重新启动后自动重新启动;另一个(
mysql.server start
)不会。这就是区别所在。在没有选项的情况下执行命令应该会产生,
tigger2:Downloads efrisch$ brew services
brew services [-v|--verbose] [list | run | start | stop | restart | cleanup] [...]
Easily start and stop formulae via launchctl.
With -v or --verbose, print more detail.
Integrates Homebrew formulae with macOS' launchctl manager. Services can be
added to either /Library/LaunchDaemons or ~/Library/LaunchAgents.
Basically, items in /Library/LaunchDaemons are started at boot, while those
in ~/Library/LaunchAgents are started at login.