mongoDB学习 安装 OSX下运行下列命令 brew update brew install mongodb 运行该项目 在项目根路径下运行下列命令 npm install, mongod --dbpath=./data --port 27017, node app.js。 参考: mongoDB install mongoDB quick start 疑问 运行教程中的mongod --dbpath=/data --port 27017命令时错误 不理解mongoDB的存储位置