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

    • September 2017
      M T W T F S S
      « Dec    
       123
      45678910
      11121314151617
      18192021222324
      252627282930  
  • Search