The most basic about MongoDB
This artcile introduces th basic operation of MongoDB from install to run:
Install on MacOS:
brew install mongodb
Run:
First, create data directory. By default, the mongod process uses the /data/db directory.
mkdir -p /data/db
Then run the mongod process to start.
Access to MongoDB:
mongo (or sudo mongo)