MongoDB 7 and Studio 3T In Ubuntu 22.04

This a demo on how to install mongodb 7 in ubuntu.

Install MongoDB Community Edition:

1 Import the public key used by the package management system
sudo apt-get install gnupg curl

import the MongoDB public GPG key

curl -fsSL |
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg

2 Create a list file for MongoDB
echo “deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] jammy/mongodb-org/7.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

3 Reload local package database
sudo apt-get update

4 Install the MongoDB packages
sudo apt-get install -y mongodb-org

Run MongoDB Community Edition

1 Start MongoDB
sudo systemctl start mongod
2 Verify that MongoDB has started successfully
sudo systemctl status mongod
3 This will ensure MongoDb to start on the next reboot
sudo systemctl enable mongod

Begin using MongoDB

Create MongoDB Admin User

use admin
db.createUser({user:”admin”, pwd:”password”, roles:[{role:”root”, db:”admin”}]})

Enable MongoDB authentication

sudo nano /etc/mongod.conf
authorization: enabled

sudo systemctl restart mongod

Confirm if MongoDB is allowing remote connections using the following command.
sudo lsof -i | grep mongo

sudo systemctl restart mongod
sudo systemctl stop mongod
sudo systemctl daemon-reload
sudo systemctl start mongod

Steps to install Robo 3T or Studio 3T free on Ubuntu 22.04

Update Ubuntu 22.04



cd Downloads
tar -xvf (tarfile)

Run the Studio 3T installer.


My Other Channel:

Buy me a coffee:

Join my facebook group for more:


Leave a Reply

Your email address will not be published. Required fields are marked *