The first step:
Go to mongodb official website https://www.mongodb.com/download-center?jmp=nav#community Download the latest version of the installation package
Please select the appropriate download according to your operating system version.
Step Two:
After downloading, start the installation
Choose Custom to customize the installation module and installation location of MongoDB
Step Three:
After completing the installation, go to the root directory of the MongoDB installation, here I am installed in the d:/mongodb/folder, you can choose your own
After that, create a data folder and create a DB folder inside to store the MongoDB directory.
Because MongoDB does not actively create the data catalog, it needs to be created manually
Fourth Step:
Start MongoDB When you're done creating
Open a command prompt
Go to the Bin folder in the MongoDB installation root directory
Enter the command prompt to start MongoDB:mongod.exe--dbpath d:\mongodb\data\db ("d:\mongodb\data\db" Data directory created under the installation root of MongoDB)
If the success will be as shown
If you feel the trouble, write a script file for quick Start
The file contents are as follows
Double-click to Mongodb.bat script file after saving to quickly start MongoDB
Fifth Step:
Setting Windows environment variables
Turn on PC Properties Select Advanced System Settings
Select the environment variable and locate the path option in the system variable
Click Edit to paste your MongoDB installation root in the variable value of the popup box
You can start MongoDB from anywhere in the command prompt after saving
Windows Platform Installation MongoDB