Home

How to Install mongoDB 3.0 on CentOS release 6.5 [Step by Step Guide]

Wondering how to install mongoDB 3.0 on CentOS release 6.5?

Here's the step by step guide.
 

1) Configure the package management system (yum).

Create a /etc/yum.repos.d/mongodb-org-3.0.repo file so that you can install MongoDB directly, using yum.

#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

 

2) Install the MongoDB packages and associated tools.

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


3.png

4.png
 

3) Disable SELinux

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.


4) Check mongod Services

#service mongod status

#service mongod start

5.png

#chkconfig mongod on

7.png
 

5) MongoDb logs

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

Screen Shot 2016-12-02 at 9.28.50 PM.png


If service has been started then mongodb has been installed properly else you may check mongodb error log here and troubleshoot the issue.



 
Related Posts
Mailbox Migration Through...

How to Migrate Emails from one Server to another Server through Virtualmin. Here's a step by step guide for...

Piyush Sharma12 May, 2017
0
NFS Client-Server...

This post will highlight the information related to network file system and its application through 3 different steps.

Piyush Sharma31 Mar, 2017
0
Keep Your Data Clean. Find...

Owing to a direct, persuasive, yet sophisticated approach to the modern marketing, it has become even more crucial...

Ramesh Choudhary19 Apr, 2017
0

Want Actionable Email Marketing Tips That Actually Work?

Sign up below to get access to email marketing best tips and insights
we only share with our subscribers.

We guarantee 100% privacy. Your information will not be shared.

Ready to Get Started?

Enjoy the experience, Sarv is the right choice for you and your business!

© 2018 Sarv. All rights reserved.