October 2018
Intermediate to advanced
332 pages
8h 9m
English
To install MongoDB, go to https://www.mongodb.org/downloads and select your OS from the tabs under the heading Download MongoDB. Every OS that has a supported version has installation instructions listed next to the download button of the installer.
To run MongoDB, go to Bash and run the following:
$ mongod
This will run a server for as long as the window is open.
Using Docker, you can easily launch a MongoDB server without needing to install anything else on your computer.
To start a MongoDB server on Docker, enter the following:
$docker run -d -p 27017:27017 mongo:3.2.20-jessie$docker container listCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES4c6706af399b mongo:3.2.20-jessie "docker-entrypoint.s…" About a minute ...