1.https://www.mongodb.com/download-center#community
2. Installation Steps
Click Next to agree to the installation, the following step select Custom
Custom Catalog
Note: In this step, I put the path written D:\MongoDB installation error, and later changed to D:\MongoDB\Server\4.0\ after installation is correct
The error message seems to have no system permissions
It is best to cancel the install MongoDB Compass, installing a visual tool yourself
Next Next>install
Waiting for installation
3. Configuring Services for MongoDB
Create a new file data and log under the MongoDB path, respectively, for storing
In D:\mongodb\Server\4.0\bin new file Mongod.config, the content is:
# #database Directory dbpath=d:\mongodb\data# #log file Logpath=d:\mongodb\log
Enter cmd at D:\mongodb\Server\4.0\bin to enter the bin file
In the console input command, mark the yellow section for your own path
SC create MongoDB binpath= "D:\mongodb\Server\4.0\bin\mongod.exe --service--dbpath=D:\mongodb\data --logpath=D:\mongodb\log\mongodb.log--logappend--directoryperdb "
After success, press Win+r to enter services.msc in the Run box.
Open the service to view the service item named "MongoDB" and click the right mouse button to "Start" the service item.
And here, our service is starting to be successful.
4. Configure Environment variables
Click desktop "This Computer" > "Properties", such as ENTER environment variable
Click OK, then open the console, enter MONGO, the version and other information, the configuration is successful, at this point, win10 under the successful installation of MongoDB
Start MongoDB can be manual and automatic, manually start the command for net start MongoDB
WIN10 MongoDB Installation