Download MongoDB
Download: https://www.mongodb.com/download-center?jmp=nav#community
Download completed
installation
Settings
Open Terminal (with Run as Administrator)
cd C:\MongoDB\bin
mongod --dbpath C:\MongoDB\data\db
In the browser address bar enter: 127.0.0.1: 27017
Tip: It looks like you are trying to access MongoDB over HTTP on the native driver port.
Re-open a terminal (Run as administrator)
1,
cd C:\MongoDB\bin
2,
mongod --dbpath "C:\MongoDB\data\db" --logpath "C:\MongoDB\data\log\mongo.log" --install --serviceName "MongoDB"
execute the following command prompt appears
Close all terminals to re-open a terminal (Run as administrator)
started successfully
Author: Blue Sword Wolf
link: https: //www.jianshu.com/p/0346c451941f
Source: Jane books