sudo add-apt-repository 'deb https://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main'Copy
sudo systemctl enable mongod --nowCopy
curl -fsSL https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -Copy
apt-get install mongodb-org -y
sudo apt install dirmngr gnupg apt-transport-https software-properties-common ca-certificates curlCopy
sudo apt updatesudo apt install mongodb-orgCopyCopy