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

  • Calendar

    • July 2017
      M T W T F S S
      « Dec    
       12
      3456789
      10111213141516
      17181920212223
      24252627282930
      31  
  • Search