MongoDb in 5 minutes

Download and Install MongoDB (using 2.0 64bit stable at the moment)
http://www.mongodb.org/

Copy unzipped directory anywhere (I have it in ~/mongodb-osx-x86_64-2.0.5)

Before you start mongod for the first time, you will need to create the data directory. By default, mongod writes data to the /data/db/ directory. To create this directory, and set the appropriate permissions use the following commands:

sudo mkdir -p /data/db
sudo chown `id -u` /data/db

Run MongoDB Server in one terminal windo

~/usr/mongodb-osx-x86_64-2.0.5/bin/mongod

Run MongoDB Client in another

~/usr/mongodb-osx-x86_64-2.0.5/bin/mongo

Advertisements

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s