In this video, we walk you through setting up MongoDB on Ubuntu, a powerful NoSQL database. We'll cover both command-line access with mongosh and a graphical interface with MongoDB Compass. Here's a quick breakdown of the steps: 1. Prerequisites: Ensure you have gnupg and curl installed on your system. These are used for managing keys and downloading files. 2. Import MongoDB Package Key: Securely import the official MongoDB repository key using the following commands: curl -fsSL https://www.mongodb.org/static/pgp/se... | sudo gpg -- dearmor -o /usr/share/keyrings/mongodb-server-8.0.gpg 3. Add MongoDB Repository: Add the official MongoDB repository to your system's package list using this command: echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb- server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb- org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list 4. Update Package Lists: Refresh the package list to reflect the newly added repository. sudo apt update 5. Install MongoDB: Install the main mongodb-org package. sudo apt install -y mongodb-org 6. Start and Verify MongoDB Service: Start the MongoDB service and check its status using these commands: sudo systemctl start mongod sudo systemctl status mongod 7. Connect with mongosh (Optional): Interact with MongoDB from the command line using the mongosh shell. This video briefly demonstrates creating a database and collection. 8. Install MongoDB Compass: Download and install the latest DEB package for MongoDB Compass to manage your databases visually. The video showcases the download command using the latest version: wget https://downloads.mongodb.com/compass... compass_latest.deb Feel free to leave a comment below if you have any questions! And don't forget to like and subscribe for more tech tutorials. #linux, #ubuntu, #mongodb