MongoDB Installation / DONE
Note: This manual is for Debian 11 only, if you have a different version of the system, please use the official documentation.
Adding keys:
sudo apt-get install -y gnupgcurl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
--dearmorecho "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.listsudo apt-get updateInstallation:
apt-get install -y mongodb-orgStarting and adding to autorun:
sudo systemctl start mongodsudo systemctl daemon-reloadsudo systemctl enable mongodCreating a database and password:
mongoshcontinue with the instructions below
Attention: The instructions are for Debian 10 only, if you have a different version of the system, please use the official documentation.
Adding keys:
sudo apt-get install -y gnupgcurl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
--dearmorecho "deb [ signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] http://repo.mongodb.org/apt/debian buster/mongodb-org/6.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.listsudo apt-get updateInstallation:
sudo apt-get install -y mongodb-orgStarting and adding to autorun:
sudo systemctl start mongodsudo systemctl daemon-reloadsudo systemctl enable mongodCreating a database and password:
mongoshcontinue with the instructions below...
Attention! In the code below there are variables you need to make up your own (ADMIN_NAME, ADMIN_PASSWORD, DB_NAME, USER_NAME, YOUR_PASSWORD, DB_NAME) these data should not be disclosed to anyone, they are accesses to your databases, if you disclose them or use the command without changes, you risk being hacked!
Activation of authorisation for MongoDB
Last updated