Mac brew命令

启动consul:consul agent -dev
启动redis:brew services start redis
重启MySQL:brew services restart mysql@5.7
处理后台程序自启动:
1:首先brew services list查看启动路径
2:然后关闭服务,并禁用开机自启动
launchctl unload -w $PATH
3:launchctl用法参考:https://segmentfault.com/a/1190000039103078

posted @ 2022-03-18 16:10  西门长海  阅读(181)  评论(0编辑  收藏  举报