Jaspersoft BI Tools

iReport,Jaspersoft Design Studio,Jaspersoft Server, Schema Workbench,Analysis,Dashboards, Self Service BI, Domains,Topics,Ad-Hoc Reports, Jaspersoft ETL, Embedding BI,HTML-5 charts, Fusion Charts,JFree Charts,Drill down reports , Drill down Dashboards,Visualize.js, Performance Tuning, D3 Charts, Jaspersoft Customization

Tuesday, August 26, 2014

mongoDB: Installation of mongoDB in Cents OS 6.5 final(32 bit)

Hello Everyone,

This article is specific installation of mongodb in  32 bit Cent OS 6.5 final.

Task to Perform


Set Repository for mongoDB
  • Open the terminal with su permission.
  • You need to create mongdb.repo file at /etc/yum.repos.d/
  • i.e.,
  • [root@localhost yum.repos.d]# vi mongdb.repo
  • Write below content in the file

            name=MongoDB Repository

  • Save the file (Esc+q!)

          The above set up is for 32 bit Cent OS.

          For 64 bit OS : Refer official documentation and do follow the steps
         described here in the same fashion.


Installation Command

  • You should be on terminal opened with su credentials.
  • Issue yum install mongodb.org command ]
  • i.e., [root@localhost]# yum install mongodb.org
  • Above command will install the latest release of mongoDB.


Start the mongoDB Server

     [root@localhost mongo]# service mongod start
       Starting mongod: [ OK ]
       [root@localhost mongo]#

       I have observed Startup of the server failed.
     * Delete mongod.lock file located at var/lib/mongo and start the server


Check whether the server started or Not in logs

  • You need to check the mongod.log file located at /var/log/mongodb/mongod.log


Stop the mongoDB Server

    [root@localhost mongo]# service mongod stop
     Stopping mongod: [ OK ]
     [root@localhost mongo]#


Check the status of the Server

   [root@localhost mongo]# service mongod status
    mongod (pid 4849) is running...
    [root@localhost mongo]#


Auto Start of mongoDB with system boot

   Issue below command to auto start the mongoDB whenever you reboot
   the system .
   #chkconfig mongod on


Check mongoDB version

  [root@localhost /]# mongo -version
   MongoDB shell version: 2.6.4


Restart the mongoDB Server

     [root@localhost /]# service mongod restart
      Stopping mongod: [ OK ]
      Starting mongod: [ OK ]


Jump to start mongo shell to get start with scripting/querying etc

Simply type mongo on the terminal

For example:
[root@localhost /]# mongo
MongoDB shell version: 2.6.4
connecting to: test
Server has startup warnings:
2014-08-27T12:14:05.196+0530 [initandlisten]
2014-08-27T12:14:05.196+0530 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
2014-08-27T12:14:05.196+0530 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
2014-08-27T12:14:05.196+0530 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.
2014-08-27T12:14:05.196+0530 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
2014-08-27T12:14:05.197+0530 [initandlisten]


List databases

> show dbs;
admin (empty)
local 0.078GB

MongoDB articles list in this site :
1) Getting Started with MongoDB - The Beginners Tutorial 
2) mongoDB-->Tip 1: Clear the mongoDB consloe : mongo editor clear screen command 
3) mongoDB : Lesson 1 : Creating /dropping databases in MongoDB