How to Install MongoDB Enterprise in Linux
Last Updated :
17 Apr, 2024
MongoDB is a free, open-source, cross-platform, document-oriented database. The MongoDB Enterprise Edition is a commercial version of MongoDB used for enterprise-scale operations.
In this guide, we will learn how to install MongoDB Enterprise edition on a Linux System(Debian). We have provided a detailed step-by-step guide with images for installing MongoDB Enterprise on Linux.
Before looking at the steps to install MongoDB Enterprise Edition on Linux, please check the system requirements for installing MongoDB Enterprise Edition on the Linux System.
Requirements
- A supported Linux distribution (such as Red Hat Enterprise Linux, CentOS, Ubuntu, or Debian).
- Administrative (root) access or a user account with sudo privileges.
- Install any required dependencies, such as the GNU C Library (glibc) and other common libraries.
Steps to Install MongoDB Enterprise on Linux (Debian)
To install MongoDB Enterprise on Linux follow the the given steps:
Step 1: Check if MongoDB is installed on your system or not, to do so run the following commands in the terminal.Â
Run sudo su command followed with user password for superuser benefits.
mongod –version
If you get the output the same as I got, then let’s get started with the installation process.
Step 2: Import the public key used by the package management system.
wget -qO – https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add –
The operation should respond with an OK.
Step 3: Create a /etc/apt/sources.list.d/mongodb-enterprise.list file for MongoDB.
echo “deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/5.0 main” | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
Step 4: Update the local package database.
sudo apt-get update
Step 5: Install MongoDB Enterprise
sudo apt install -y mongodb-server-core
Step 6: Check again the installation of MongoDB.
mongod –version
Also Read:
Conclusion
MongoDB Enterprise Edition is a commercial version of MongoDB that is used for large-scale applications for eg, at an enterprise level. It is different from a normal MongoDB database, it is much more secure and supports various operations.
In this article, we have covered the step-by-step process to install MongoDB Enterprise on Linux. We have explained each step with respective images so that users can easily install MongoDB Enterprise Edition on Linux and efficiently operate on databases.
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...