1. Installation
Download and install, note the installation method is custom, path customization (D:\CHENGXU\MONGODB), after the installation is successful and then the new Data folder (within the new DB folder) and Logs folder (inside new Mongodb.log file) under the MongoDB folder
2. Server-side Connection
CMD window, enter "d:\chengxu\mongodb\bin\mongod.exe--dbpath d:\chengxu\mongodb\data\db". After the carriage return, "waiting for Connenctions on port 27017" is executed successfully, the "localhost:27017" is accessed in the browser, and the cmd window that executes finally appears " Connection now open"text. Exit the server connection with "Ctrl +c".
3. Create a Windows service
CMD window input "d:\chengxu\mongodb\bin\mongod.exe--logpath d:\chengxu\mongodb\logs\mongodb.log--logappend--dbpath D : \chengxu\mongodb\data\db--servicename MongoDB--install". Window unresponsive indicates successful installation, you can start the service using the "net start Momgodb" command
4. You can view the version and other information by executing Mongo.exe
Two commands for MongoDB installation