1: Installation
Download the latest version from Https://www.mongodb.com/download-center?jmp=nav#community to local, and modify the installation path C:\MongoDB when installing.
After installation, there will be C:\MongoDB\bin directory, there are many EXE programs.
2: Make configuration file
C:\MongoDB\mongo.config
The contents are as follows:
Dbpath=c:\mongodb\data\db
Logpath=c:\mongodb\data\log\mongodb.log
3: Command line load configuration file and make system service
C:\mongodb\bin>mongod.exe--config C:\MongoDB\mongo.config--install--servicename "MongoDB"
4: Start or deactivate system services from the command line
C:\mongodb\bin>net Start MongoDB
C:\mongodb\bin>net Stop MongoDB
Summary: MongoDB does not need to be installed, only need to create the server's startup environment: The Bin folder is required (for some of the MongoDB commands), specify the location of the database and log location, create a log file. With this, the MongoDB server side can be started.
MongoDB Learning Notes