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.

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...

Adding Server Credentials from Client Area

The exchange of passwords in plain text format is not at all a safer way nowadays.  In case if we...

Backup and Restore cPanel Accounts via SSH

a. How to create a backup of a cPanel Account via SSH?   1. Log-in to the SSH as the Root user....

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...