How to Install MongoDB On Ubuntu 24.04

Channel:
Subscribers:
14,100
Published on ● Video Link: https://www.youtube.com/watch?v=ZXGB7dA0Gfw



Duration: 0:00
90 views
3


Are you ready to set up MongoDB on your Ubuntu 24.04 system? In this comprehensive tutorial, we'll walk you through how to install MongoDB on Ubuntu 24.04 the right way β€” from adding the official MongoDB repository to verifying your installation. Perfect for beginners and developers alike!

πŸ‘‰ Sign up for DigitalOcean - https://zacs-tech.com/go/digitalocean/

πŸ“¦ Commands Used in This Video:

sudo apt install -y gnupg curl

curl -fsSL htt://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor (PART OF https removed add)

echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] htt://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list (PART OF https removed add)

db.runCommand({ connectionStatus: 1 })

db.createUser({
user: "zack",
pwd: "zacstech123",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } , "readWriteAnyDatabase" ]
})

mongosh -u newadmin -p --authenticationDatabase admin


DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!