How to Install MongoDB in Linux

MongoDB is a free, cross-platform, open source, NoSQL document-oriented database. It supports GNU/Linux, Microsoft Windows, Solaris, and Mac OS X. MongoDB is available as two editions, Community and Enterprise edition. MongoDB community edition is free for personal usage, whereas enterprise edition is paid version that have more features and support than the community edition.

In this brief tutorial, we will see how to install MongoDB community edition in Linux.

Install MongoDB community edition in Linux

In RHEL / CentOS / Scientific Linux:

Set SELinux to permissive mode or disable it completely. To do so, edit /etc/selinux/config file: