Created
November 18, 2019 14:40
-
-
Save linuxfemale/927c43de8d6a0ad6cad52f11a3b7cf36 to your computer and use it in GitHub Desktop.
MongoDB Community Edition on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB Community Edition on Ubuntusudo apt update | |
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - | |
sudo apt-get install gnupg | |
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - | |
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org | |
echo "mongodb-org hold" | sudo dpkg --set-selections | |
echo "mongodb-org-server hold" | sudo dpkg --set-selections | |
echo "mongodb-org-shell hold" | sudo dpkg --set-selections | |
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections | |
echo "mongodb-org-tools hold" | sudo dpkg --set-selections | |
mongo --version | |
mongo | |
> db | |
> show dbs | |
> exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment