Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active May 1, 2020 14:37
Show Gist options
  • Save sandrabosk/d17d20d765238ba54e7ecabdbf15393e to your computer and use it in GitHub Desktop.
Save sandrabosk/d17d20d765238ba54e7ecabdbf15393e to your computer and use it in GitHub Desktop.

[WIN] Install MongoDB - official docs

Run the following commands in your terminal:

$ 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 update
$ sudo apt install mongodb --assume-yes
$ sudo apt remove mongo-tools mongodb mongodb-clients mongodb-server mongodb-server-core --assume-yes
$ sudo apt install mongodb-org --assume-yes

To start MongoDB on your machine:

$ sudo service mongodb start

Install MongoDB Compass - official docs

You must download the normal version, not the Community Edition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment