我正在尝试在MacOS Monterey上使用MongoDB,但它似乎不起作用。我已经通过Homebrew和安装了它
/opt/homebrew/Cellar/mongodb-community/6.0.1/bin/mongo
缺少。
brew list mongodb-community@6.0
退货:
/opt/homebrew/Cellar/mongodb-community/6.0.1/bin/install_compass
/opt/homebrew/Cellar/mongodb-community/6.0.1/bin/mongod
/opt/homebrew/Cellar/mongodb-community/6.0.1/bin/mongos
/opt/homebrew/Cellar/mongodb-community/6.0.1/homebrew.mxcl.mongodb-community.plist
/opt/homebrew/Cellar/mongodb-community/6.0.1/MPL-2
/opt/homebrew/Cellar/mongodb-community/6.0.1/THIRD-PARTY-NOTICES
您需要首先使用:
brew tap mongodb/brew
然后使用:
brew install mongodb-community@6.0
这在MongoDB页面上有记录:https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/