MongoDB opensource Installation on RHEL6 64bit from rpms
6:36 PM1. Configure repo
[hostname_mongodb ~]# vi /etc/yum.repos.d/mongodb.repo [mongodb-org-3.0] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/ gpgcheck=0 enabled=1
2. Install packages via yum
[hostname_mongodb ~]# yum install mongodb-org* ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: mongodb-org x86_64 3.0.3-1.el6 mongodb-org-3.0 4.6 k mongodb-org-mongos x86_64 3.0.3-1.el6 mongodb-org-3.0 3.9 M mongodb-org-server x86_64 3.0.3-1.el6 mongodb-org-3.0 8.2 M mongodb-org-shell x86_64 3.0.3-1.el6 mongodb-org-3.0 4.1 M mongodb-org-tools x86_64 3.0.3-1.el6 mongodb-org-3.0 31 M Transaction Summary
3. Start MongoDB and check the log to verify
[hostname_mongodb ~]# service mongod start [hostname_mongodb ~]# cat /var/log/mongodb/mongod.log [hostname_mongodb ~]# chkconfig mongod on
4. Login to shell
[hostname_mongodb ~]# mongo
0 comments