How to install Mongo DB on Mac

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 :

  1. First install homebrew, can see the documentation: https://docs.brew.sh/Installation
  2. Second find tap mongodb by:
    # brew tap mongodb/brew
  3. Third, install mongo db by entering the command:
    # brew install mongodb-community
  4. 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

Posting Komentar

Lebih baru Lebih lama