brew install mongo

% sudo brew install mongo                                   

Password:

==> Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-1.6.5.tgz

######################################################################## 100.0%

==> Caveats

If this is your first install, automatically load on login with:

    cp /usr/local/Cellar/mongodb/1.6.5-x86_64/org.mongodb.mongod.plist ~/Library/LaunchAgents

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

 

If this is an upgrade and you already have the org.mongodb.mongod.plist loaded:

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

    cp /usr/local/Cellar/mongodb/1.6.5-x86_64/org.mongodb.mongod.plist ~/Library/LaunchAgents

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

 

Or start it manually:

    mongod run --config /usr/local/Cellar/mongodb/1.6.5-x86_64/mongod.conf

==> Summary

/usr/local/Cellar/mongodb/1.6.5-x86_64: 16 files, 83M, built in 2 seconds