这里是在Linux上获取服务状态的命令:
service ${services} status
我想知道在macOS上获取服务状态的命令。任何帮助将不胜感激。
您只能列出服务:
sudo launchctl list
加入一些grep,你就得到它了。
sudo launchctl list | grep service <-- Here you put the service you're looking for
输出结果具有以下含义:
只需简单输入brew services list
即可完成操作。