centOs 7

MongoDB Introduction with Installation

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,

[button color=”” size=”” type=”square” target=”” link=””]mongodb-org
mongodb-org-server
mongodb-org-mongos
mongodb-org-shell
mongodb-org-tools[/button]

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.

[button color=”” size=”” type=”square” target=”” link=””][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[/button]

wq!

For versions of MongoDB earlier than 3.0

[button color=”” size=”” type=”square” target=”” link=””][mongodb-org-2.6]
name=MongoDB 2.6 Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1[/button]

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 mongodb service

#systemctl reload mongodb


HR-ADMIN

Recent Posts

Step-by-Step Guide to Implementing a CDN for WordPress

Picture this: Your WordPress site is like that one friend who's always fashionably late to everything. You know, the one…

5 days ago

The Truth Behind AI Detectors: Trust or Distrust?

In a world where artificial intelligence is rapidly reshaping our digital landscape, AI detectors have emerged as both guardians and…

2 weeks ago

What are the advantages of using VPS for e-learning?

In today's digital age, e-learning has become more than just a convenience – it's a necessity. As virtual classrooms and…

3 weeks ago

Updated cPanel License Price in Jan 2025: A Comprehensive Guide

Are you ready for another cPanel price adjustment? As we have approached January 2025, cPanel has rolled out significant changes…

2 months ago

Finding Your Fit: Website Builder or WordPress for Your Site?

In this growing digital world, having a website is not enough—it’s a crucial and much-needed option. But here's the challenge…

2 months ago