MongoDB: OSX Installation

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):


What do you think?

0 points
Upvote Downvote

Total votes: 0

Upvotes: 0

Upvotes percentage: 0.000000%

Downvotes: 0

Downvotes percentage: 0.000000%

Written by Admin

I work for a Telecom company writing and testing software. My passion for writing code is expressed through this blog. It's my hope that it gives hope to any and all who are self-taught.


Leave a Reply


Node.js – Managing Dependancies

Prototyping with Node.js