Installation:
1. MongoDB (V3.4.7) installation package: Https://www.mongodb.com/download-center#community
After the successful download, the installation mode Select customer can customize the installation path, I am installed in the D:\mongodb\
A bin directory is generated when the installation is complete.
2. Configure the D:\mongodb\bin to the environment variable path.
3. Create a new DB directory and log directory under the MongoDB directory and create a new Mongodb.log file in the log directory.
Start:
Go to the Mongodb/bin directory and run Mongod.exe as administrator.
Run cmd as Administrator and enter the following command:
Mongod--dbpath "D:\mongodb\db"--logpath "D:\mongodb\log\mongodb.log"--logappent--install--servicename "Mong ODB "
Then execute the: net start MongoDB command, which appears as follows to start the success
MongoDB Installation and Startup