1. Statement
The current content is for my notes. Install the MongoDB database (decompressed version) under Windows, use MongoDB Compass to operate the current database, and write notes here
2. Download MongoDB
MongoDB download location
3. Unzip the current MongoDB database
1. When installing the decompressed version, be careful not to place it in the Chinese directory, otherwise the installation may report an error
2. Unzip the MongoDB compressed package
4. Create MongoDB configuration file
1. Create a configuration file: mongo.conf in the current mongodb-4.2.2, its content is:
dbpath=D:/databases/mongodb-4.2.2/data
logpath=D:/databases/mongodb-4.2.2/logs/mongo.log
logappend=true
journal=true
quiet=true
port=27017
2. Add files and folders to the current mongodb-4.2.2, consistent with mongo.conf (dbpath, logpath)
5. Start installing the MongoDB service
Note: Be sure to use administrator mode to open cmd
1. Use cmd to switch to the bin directory of the current mongodb decompression location
2. Use cmd to start installing the mongodb service
mongod –config D:\databases\mongodb-4.2.2\mongo.conf –install -serviceName “MongoDB”
Check the log file to see whether the current MongoDB installation is successful
3. Check whether the service is installed successfully
6. Summary
Since I have installed it successfully, the above content is purely my personal opinion. If you have any questions, please contact me!