How to install MongoDB 6.0 Server on Ubuntu 22.04
In this video, we’re going to walk through the process of installing MongoDB 6.0 Server on Ubuntu 22.04. MongoDB is a popular NoSQL database that offers flexibility and scalability for your applications
Some of the Commands
sudo apt-get install gnupg curl
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /etc/apt/trusted.gpg.d//mongodb-server-6.0.gpg –dearmor
echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo systemctl enable –now mongod
sudo systemctl status mongod
Uninstall
sudo apt autoremove –purge mongodb-org
ubuntu