1. Download the. msi file on the MongoDB website and I'm under the community version: Https://www.mongodb.com/download-center#community
2. Click the MSI file to install MongoDB, the default installation is C:\Program files\mongodb\server\3.2
3. Add the installation path to the environment variable, that is, add the C:\Program files\mongodb\server\3.2\bin to the environment variable. About environment variables: Right click on the computer, select Properties, click on the System Advanced settings, click Advanced Environment variables, find the variable named path of a row click Edit, add C:\Program files\mongodb\server\3.2\bin to the last, Remember to use a semicolon to separate it from the front.
4. Build the MongoDB data and log folder. For example, in the D disk to create a folder MongoDB, under which the sub-folder data and log are created.
5.cmd Open a Command Prompt window, enter Mongod--dbpath "D:\mongoDB\data"--logpath "D:\mongoDB\log\mongo.log"--install--servicename " MongoDB ", enter
6.net start Mongdb, will prompt the MongoDB service has started successfully, the default listening TCP port is 27017, you can enter localhost:27017 in the browser address bar, you will see the appearance:
It looks like you is trying to access MongoDB over HTTP on the native driver port.
7. Use the MONGO command to enter the MONGO shell for database operations
Installing MongoDB steps on Windows