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
  • Calendar

    • November 2017
      M T W T F S S
      « Dec    
       12345
      6789101112
      13141516171819
      20212223242526
      27282930  
  • Search