Install MongoDB in Ubuntu 22.04
This Blog is a Note to me for installing Mongodb in Ubuntu 22.04
Update System Repository
sudo apt update
Import the public key
curl -fsSL https://www.mongodb.org/static/pgp/server-6.0.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-6.gpg
Configure MongoDB Repo
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Download required Package
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb
sudo dpkg -i ./libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb -y
sudo apt update
Install MongoDB 6.0 on Ubuntu 22.04
sudo apt install mongodb-org
Enable and start service
sudo systemctl enable --now mongod
sudo systemctl status mongod.service