MongoDB Installation / DONE

This point is required only when installing in Source mode by default we use Docker system in which MongoDB does not need to be installed separately

Adding keys:

sudo apt-get install -y 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 [ signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update

Installation:

apt-get install -y mongodb-org

Starting and adding to autorun:

sudo systemctl start mongod
sudo systemctl daemon-reload
sudo systemctl enable mongod

Creating a database and password:

mongosh

continue with the instructions below

Activation of authorisation for MongoDB

Last updated