MongoDB从Homebrew Core中消失了

当我想在Mac上通过brew install mongodb安装MongoDB时,却发现无法安装。

$ brew install mongodb
Error: No available formula with the name "mongodb"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

mongodb was deleted from homebrew/core in commit 2c2e57c:
  mongodb: delete

To show the formula before removal run:
  git -C "$(brew --repo homebrew/core)" show 2c2e57c^:Formula/mongodb.rb

If you still use this formula consider creating your own tap:
  https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

听说由于MongoDB不再采用开源许可证,它好像已经从homebrew-core中消失了。

引入方式

针对那些非常想要安装的人士,分享一种安装方法。

brew uninstall mongodb

brew tap mongodb/brew
brew install mongodb-community

// 実行
mongod --dbpath /usr/local/var/mongodb/

嗯,这就是说要使用Docker。

广告
将在 10 秒后关闭
bannerAds