Installing MongoDB with Homebrew
Here I will share how to install Mongo DB with Homebrew (Homebrew is a package manager for OS X), There are a few steps :
- First install homebrew, can see the documentation: https://docs.brew.sh/Installation
- Second find tap mongodb by:
# brew tap mongodb/brew - Third, install mongo db by entering the command:
# brew install mongodb-community - If you have started the mongo db by:
# brew services run mongodb-community
So if successful, please when #mongod on the terminal it will appear as below :
image for #mongod
To see the version of mongo db run the command: # mongod — version
version mongod
That’s all and thank you, hope it’s usefulThat’s all and thank you, hope it’s useful…
Source :
https://zellwk.com/blog/install-mongodb/
https://github.com/mongodb/homebrew-brew