mongodb
MongoDB
Installing MongoDB
Run MongoDB On WSL Ubuntu

Installing MongoDB on UBUNTU



MongoDB 5.0 Community Edition 64-bit Supports Ubuntu 20.04 LTS, Ubuntu 18.04 LTS, Ubuntu 16.04 LTS releases on x86_64 architecture.

Import the public key used by the MongoDB package management system

Issue the below command in terminal


wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -

The operation should respond with an OK.


if you receive an error indicating that gnupg is not installed, you can install gnupg and its dependency libraries using the following command


sudo apt-get install gnupg

Create a list file for MongoDB in Ubuntu 20.04 (Focal) as below


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

Create a list file for MongoDB in Ubuntu 18.04 (Bionic) as below


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

Create a list file for MongoDB in Ubuntu 16.04 (Xenial) as below


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

Reload local package database with below command


sudo apt-get update

Install the latest stable version of MongoDB packages by issuing below command


sudo apt-get install -y mongodb-org

Issue the below command to Confirm the installation with version number


mongod --version

Issue the below command to Start MongoDB


sudo systemctl start mongod

If you see the failed message like., Failed to start mongod.service: Unit mongod.service not found., Reload daemon by Issuing below command


sudo systemctl daemon-reload


Run MongoDB On WSL Ubuntu

Run MongoDB On WSL Ubuntu

posted on 2022-04-28 05:02:09 - mongodb Tutorials


Installing MongoDB

Installing MongoDB

posted on 2022-04-28 04:16:57 - mongodb Tutorials


how to use range in golang

how to use range in golang

posted on 2022-05-03 08:28:11 - Go lang Tutorials


find variable type in golang

find variable type in golang

posted on 2022-05-03 05:24:55 - Go lang Tutorials


for loops in golang

for loops in golang

posted on 2022-05-03 04:27:40 - Go lang Tutorials