brew install mongodb
. Follow the instructions in the How to Install Homebrew on a Mac instruction guide.brew update
.brew install mongodb
mkdir -p /data/db
/data/db
directory has the right permissions by runningmongod
. This should start the Mongo server.mongo
in another terminal window. This will run the Mongo shell which is an application to access data in MongoDB.quit()
ctrl-c
mkdir -p /data/db
/data/db
directory has the right permissions by running~/mongodb/bin/mongod
. This will start the Mongo server.~/mongodb/bin/mongo
in another terminal window. This will run the Mongo shell which is an application to access data in MongoDB.quit()
ctrl-c