Brew Install

The easiest way I found to install MongoDb on OSX was with Brew:

  1. brew update
  2. brew install mongodb

To verify installation open a new terminal window and type:


You should see a bunch of database info scroll by.  If you don’t, make sure you opened a new terminal window when you ran that command.

Setting Up Mongo as a Daemon

I followed these instructions with great success:

Verifying MongoDB is Installed

Feel free to restart your mac, and then go to terminal and do a:

ps -ax | grep mongo

It should return something like:

   83 ??         0:00.57 /usr/local/bin/mongod –dbpath /var/lib/mongodb/ –logpath /var/log/mongodb.log

Manual Start and Stop of MongoDB

To stop the MongoDB service:

launchctl unload -w ~/Library/LaunchAgents/org.mongodb.mongod.plist

To start it up again (without a restart):




No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments