Install MongoDB on Centos7

MongoDB is an open-source cross-platform document-oriented database, classified as a NoSQL database program.

We can install MongoDB on a Centos7 using yum, but we need to add the MongoDB repository. You can watch the video tutorial by clicking here

1. Create a repo file inside '/etc/yum.repos.d/' directory.

# vi /etc/yum.repos.d/mongodb-org.repo

Paste the following contents to the repo file:


name=MongoDB Repository





2. Update the repo list using the following command:

# yum repolist

3. Install MongoDB:

# yum install mongodb-org

4. Start the Service:

# systemctl start mongod

  • mongodb, centos7 mongodb
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...