MongoDB Introduction with Installation

MongoDB Introduction with Installation

0
0
SHARE
Linux Reseller Hosting

How to install MongoDB on Centos 7 ?

Introduction: It is one of the poplar opensource document-oriented database that provides high performance, high availability, and automatic scaling.

 

MongoDB provide following important key features,

High Performance
Rich Query Language
High Availability
Horizontal Scalability
Multiple Storage Engine

 

Installation steps:

1. By defualt MongoDB does not exist with centos. They provides their own repository.
This repository contains following packages,

mongodb-org
mongodb-org-server
mongodb-org-mongos
mongodb-org-shell
mongodb-org-tools

2. Login to your server and create repo file under path: /etc/yum.repos.d/

vi /etc/yum.repos.d/mongodb.repo

Add following repos in it.

[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

wq!

For versions of MongoDB earlier than 3.0

[mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

3. Now we are ready to install MongoDB on Centos 7

#yum install mongodb-org

Once done with the error free installation, start mongod service

#systemctl start mongod

4. Its conifiguration file is : /etc/mongod.conf
If you made chagnes then reload mongod service

#systemctl reload mongod

 

 

Windows Shared Hosting

Our Partner

partner-cloudflare
partner-cloudlinux
partner-cpanel-whm
partner-Paralleles-plesk-panel
partner-sitelock
partners-OpenVZ
R1Soft
partners-RV-Globalsoft
partners-Softaculous-auto-installer
partners-solusvm
partners-whmcs
services-cpanel
services-MySQL
services-Perl
services-swsoft-plesk
support-sevices-php