Monday, April 15, 2019

MongoDB OSX Setup



1.) Install brew. Go to https://brew.sh/
     Then copy the installation script then paste it to terminal
     /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.) Install node.
     brew install node

3.) Install mongodb.
     brew install mongo

4.) Test it. Go to terminal and write
      mongod

You should be able to see 'waiting for connections on port 27017' at end of the logs
   



Two ways of starting the mongodb server

1.) By calling the mongo itself in the terminal
      mongod


2.) By starting the services itself. This will automatically start mongodb at any time.
      brew services start mongo

0 comments:

Post a Comment