Install MongoDB enterprise Ubuntu Linux. Step by step process of installation of MongoDB Enterprise on Ubuntu Linux.
MongoDB only provides packages for 64-bit LTS (long-term support) Ubuntu releases. For example, 12.04 LTS (precise), 14.04 LTS (trusty), 16.04 LTS (xenial), and so on. These packages may work with other Ubuntu releases, however, they are not supported. Please follow the following steps to install the MongoDB enterprise edition on Ubuntu Linux. MongoDB enterprise edition demand some subscription fee, which means it’s paid on production.
step 1. Import the public key
Import the public key used by the package management system.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
step 2. Create the list file
Create a /etc/apt/sources.list.d/mongodb-enterprise.list file for MongoDB.
Create the list file using the command appropriate for your version of Ubuntu:
Ubuntu 12.04
echo "deb http://repo.mongodb.com/apt/ubuntu precise/mongodb-enterprise/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
Ubuntu 14.04
echo "deb http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
Ubuntu 16.04
echo "deb http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
step 3. Update local Repo
sudo apt-get update
step 4. Install the MongoDB Enterprise
sudo apt-get install -y mongodb-enterprise
Step 5. MongoDB Different Services
Following are the different services to check whether mongoDB running or not.
After installation, you need to do the following things.
– Check the services of mongoDB running or not.
– Start the mongod service
– stop the mongoDB service.
– Restart the MongoDB Service
5.1 Check Status of MongoDB service
sudo service mongod status
5.2 Start MongoDB Service
sudo service mongod start
5.3 Start the MongoDB Service
sudo service mongod start
5.4 Stop MongoDB Service
sudo service mongod stop
Reference
Your comments are welcome to improve this post.