MongoDB Installation
MongoDB Installation
Ubuntu
1. Import the public key used by the package management
system.
Ubuntu 18.04 -
echo "deb [ arch=amd64 ]
https://repo.mongodb.org/apt/ubuntu bionic/mongodb-
org/4.0 multiverse" | sudo tee
/etc/apt/sources.list.d/mongodb-org-4.0.list
Ubuntu 16.04 -
echo "deb [ arch=amd64,arm64 ]
https://repo.mongodb.org/apt/ubuntu xenial/mongodb-
org/4.0 multiverse" | sudo tee
/etc/apt/sources.list.d/mongodb-org-4.0.list
mongo
7. Stop MongoDB.
MacOS
1. Install Homebrew
3. Install MongoDB
4. Run MongoDB
mongo
Windows