Install “mongodb” on Mac
From here.
First make sure you have “Homebrew“ installed. Then run the following commands:
1 | # Tap the formulae. |
The content of “/usr/local/etc/mongod.conf” is:
1 | systemLog: |
To get more instructions how to use “mongosh”, you can visit here. Here is a tutorial which provides the basic concepts of mongodb.