Hello Everyone,
This article is specific installation of mongodb in 32 bit Cent OS 6.5 final.
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
:-)
This article is specific installation of mongodb in 32 bit Cent OS 6.5 final.
#
|
Task to Perform
|
Implementation
|
1 |
Set Repository for mongoDB
|
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1
NOTE:
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.
|
2 |
Installation Command |
|
3 |
Start the mongoDB Server |
[root@localhost mongo]# service mongod start Starting mongod: [ OK ] [root@localhost mongo]# NOTE: I have observed Startup of the server failed. * Delete mongod.lock file located at var/lib/mongo and start the server |
4 |
Check whether the server started or Not in logs |
|
5 |
Stop the mongoDB Server
|
[root@localhost mongo]# service mongod stop Stopping mongod: [ OK ] [root@localhost mongo]# |
6 |
Check the status of the Server |
[root@localhost mongo]# service mongod status mongod (pid 4849) is running... [root@localhost mongo]# |
7 |
Auto Start of mongoDB with system boot |
Issue below command to auto start the mongoDB whenever you reboot the system . #chkconfig mongod on |
8 |
Check mongoDB version |
[root@localhost /]# mongo -version MongoDB shell version: 2.6.4 |
9 |
Restart the mongoDB Server |
[root@localhost /]# service mongod restart Stopping mongod: [ OK ]
Starting
mongod: [ OK ]
|
10 |
Jump to start mongo shell to get start with scripting/querying etc |
Simply type mongo on the terminal [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]
>
|
11 |
List databases |
> show dbs;
admin (empty)
local 0.078GB
>
|
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
:-)
No comments:
Post a Comment