Wednesday, 26 December 2018

How to Install MongoDB in Ubuntu:


1) Add MongoDB official software packages repository
sudo apt-key adv — keyserver hkp://keyserver.ubuntu.com:80 — recv 0C49F3730359A14518585931BC711F9BA15703C6

2) Add MongoDB repository details so apt will know where to download the packages:
echo “deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

3) Update the packages list:
sudo apt-get update

4) Now Install MongoDB:
sudo apt-get install mongodb-org

PS : This installation is valid for mongoDb version 3.4 in ubuntu for other versions update 3.4 value.

No comments:

Post a Comment

Generating Unique Id in Distributed Environment in high Scale:

Recently I was working on a project which requires unique id in a distributed environment which we used as a  primary  key to store in dat...