Articles

How To Install MongoDB 4.4 on CentOS 8

MongoDB is an open source NoSQL database management program. NoSQL is used as an alternative to traditional relational databases. NoSQL databases are quite useful for working with large sets of distributed data. MongoDB is a tool that can manage document-oriented information, store or retrieve information.

Install mongoDB 4.4 on centOS 8; Through this tutorial, we will learn how to install and use MongoDB 4.4 on centOS 8.

How To Install MongoDB 4.4 on CentOS 8

Follow the following steps to install and use MongoDB on CentOS 8:

  • Step 1 – Add the Repository in CentOS 8
  • Step 2 – Install MongoDB in CentOS 8
  • Step 3 – Verify MongoDB Installation in CentOS 8

Step 1 – Add the Repository in CentOS 8

First of all, open the terminal or command line and execute the following command into it to add a repository in centOS 8:

sudo tee /etc/yum.repos.d/mongodb-org-4.repo<

Step 2 – Install MongoDB in CentOS 8

Once the repository has been added, then execute the following command on command line or terminal to install mongoDB in CentOS 8:

sudo yum install mongodb-org

While the MongoDB installation is being processed, some prompts open in the terminal. So type y and press enter.

The above command will also install the following dependency packages:

mongodb-org-server – This provides MongoDB daemon mongod
mongodb-org-mongos – This is a MongoDB Shard daemon
mongodb-org-shell – This provides a shell to MongoDB
mongodb-org-tools – MongoDB tools used for export, dump, import e.t.c

Step 3 – Verify MongoDB Installation in CentOS 8

Once the installation has done. Execute the following command on command line to verify mongodb installation in centOS 8:

rpm -qi mongodb-org-server

Conclusion

Install mongoDB 4.4 on centOS 8; Through this tutorial, we have learned how to install and use MongoDB 4.4 on centOS 8.

Images mentioned above related to CentOS,Mongodb are either copyright property of respective image owners.

Rabins Sharma Lamichhane

Rabins Sharma Lamichhane is the owner of RabinsXP who is constantly working for increasing the Internet of Things (IoT) in Nepal. He also builds android apps and crafts beautiful websites. He is also working with various social services. The main aim of Lamichhane is to digitally empower the citizens of Nepal and make the world spiritually sound better both in terms of technology and personal development. Rabins is also the first initiator of Digital Nepal.

Related Articles

Leave a Reply

Your email address will not be published.

Back to top button