张志峰的博客

水滴石川,积少成多。

导航

Mac 配置 用brew 配置mongodb 的配置

Posted on 2023-06-10 16:41  ╰★张志峰★╮  阅读(154)  评论(0编辑  收藏  举报

安装参考这个 https://blog.csdn.net/qq_37268201/article/details/103962477

修改Http 类型和缓存

https://zhuanlan.zhihu.com/p/474800808

 

方案一

https://www.likecs.com/ask-586760.html

 

查看时, 参考下面

mongodb-community@5.0 is keg-only, which means it was not symlinked into /usr/local,

because this is an alternate version of another formula.

 

If you need to have mongodb-community@5.0 first in your PATH, run:

  echo 'export PATH="/usr/local/opt/mongodb-community@5.0/bin:$PATH"' >> ~/.zshrc

 

To start mongodb/brew/mongodb-community@5.0 now and restart at login:

  brew services start mongodb/brew/mongodb-community@5.0

zzf688@192 ~ % brew services start mongodb/brew/mongodb-community@5.0

==> Successfully started `mongodb-community@5.0` (label: homebrew.mxcl.mongodb-c

zzf688@192 ~ %