我正在尝试使用 official mongodb tutorial 之后的新 M1 芯片在 macbook air 上安装 Mongodb 社区服务器。但是我遇到了这个问题。
~ ❯❯❯ brew install mongodb-community@4.4
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
在 m1 上安装 mongodb 的任何帮助都会非常有帮助
关于如何使用自制软件在苹果 m1 上安装 mongodb 的文章
2.安装xcode命令行使用
3.现在安装mongodb使用
4.检查mongodb是否已经安装使用
5.启动mongoDB作为macOS服务使用
运行 mongodb 命令,打开一个新表并运行
mongo
检查你的数据库运行
show dbs
完整文档在这里: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/