How To Install MongoDB 4.4 on CentOS 8

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<<EOF
[mongodb-org-4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
EOF

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.

Recommended CentOS Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *