Mongodb is a open source database which is document oriented and is a part of Nosql database family . Its structure is a similar to JSON style documents with dynamic schemas. Mongo is used by eBay, MetLife, Telefónica, Foursquare, MTV Networks and the UK Government. MongoDB is the most popular NoSQL database management system.
Mongodb’s software packages are available for Windows, Linux, OS X, and Solaris.
Mongodb installation on Ubuntu :
1. Import GPG Key from i10gen for Mongodb
#sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 |
2. Issue command to configure repository
echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’ | sudo tee /etc/apt/sources.list.d/10gen.list |
3. Update apt repository
#sudo apt-get update |
4. Install the latest version of Mongo
#sudo apt-get install mongodb-10gen |
Mongodb installation on Redhat/CentOS/Fedora :
1. Create yum repository file to configure Mongodb repository
# vi /etc/yum.repos.d/mongo.repo |
Insert the below contents and save the file
For 64 bit systems
[10gen]
name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 enabled=1 |
For 32 bit systems
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 gpgcheck=0 enabled=1 |
2. Install packages
#yum install mongo-10gen mongo-10gen-server |
Starting Mongo Daemon
1. Start the Mongod service
# /etc/init.d/mongod start |
Start Playing with Mongodb
Login to shell
# mongo |
We will come up with more step by step tutorial related to Mongodb , till then refer i10gen website’s tutorial pdf