MongoDB (Sorta Quickstart Guide)

There has been a lot of traction in general about the entire NoSQL movement. You’ll hear a lot about Cassandra, MapReduce (MapR), and MongoDB when it comes to this realm. At work I’ve been tasked and have had the pleasure of playing with MongoDB. Today, I spent most of the time playing with it, mainly tried to get it up and running.

I was having trouble at the beginning trying to get everything. It was mainly due to some server configuration ignorance on my end but now it’s up and running. The server I have it on is our dev server. Currently, the server is running a Centos 6, PHP and now Mongo locally. Mind you, this is purely for development purposes.

I’d like to share some information for those of you starting MongoDB to help save you some time. Read this blog post to get yourself up and running. Make a /data/db directory and the command below gets Mongo daemon running:

$ mongod --bind_ip <IP ADDR> --rest --fork --logpath /var/log/mongodb.log --logappend

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>