Wondering how to install mongoDB 3.0 on CentOS release 6.5?
Here's the step by step guide.
#vi /etc/yum.repos.d/mongodb-org-3.0.repo
For this version of MongoDB Use the following repository file:
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
To install the latest stable version of MongoDB, issue the following command:
#sudo yum install -y mongodb-org
To install a specific release of MongoDB, specify each component package individually and append the version number to the package name, as in the following example:
#sudo yum install -y mongodb-org-3.0.13 mongodb-org-server-3.0.13 mongodb-org-shell-3.0.13 mongodb-org-mongos-3.0.13 mongodb-org-tools-3.0.13
Disable SELinux by setting the SELINUX setting to disabled in /etc/selinux/config.
SELINUX=disabled
You must rebbot the system for the changes to take effect.
#service mongod status
#service mongod start
#chkconfig mongod on
You can follow the state of the process for errors or important messages by watching the output in the /var/log/mongodb/mongod.log file.
# tail -f /var/log/mongodb/mongod.log
If service has been started then mongodb has been installed properly else you may check mongodb error log here and troubleshoot the issue.