MagicHosting Logo
Back to blog

Magichosting

Install and start MongoDB 6.0 on Ubuntu/Debian

E
Elias Bieber
Estimated reading time: 1 min

Set up MongoDB Community Edition: import GPG key, add repository, install mongodb-org, enable autostart and test with mongosh.

MongoDBNoSQLLinuxDebianUbuntu

Install MongoDB (Ubuntu/Debian)

apt update && apt upgrade
apt-get install gnupg
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
apt-get update && apt-get install mongodb-org
systemctl start mongod && systemctl enable mongod

Test: mongosh. For GUI management use e.g. Studio 3T.

Was this post helpful?

MagicHosting – Hosting with real value

Hosting pays off with MagicHosting: fair pricing, current deals and reliable operation from Frankfurt. We offer servers, domains and personal support – no hidden costs.

  • Current special sales with discounts on servers and packages
  • Affordable domains with transparent pricing and great offers
  • Powerful DDoS protection for maximum availability
  • Personal support when you have questions or issues
Contact on WhatsApp