First download the Mongdb Zip package, you can go to: http://www.mongodb.org/downloads. Select 32-bit or 64-bit.
Create a MongoDB folder on the D disk, D:\mongodb. Copy all the contents of the extract into the folder. and create the Data folder under this folder. D:\mongodb\data. Create the DB and log folders under the Data folder.
Create a MongoDB.log log file under log.
Enter the bin directory of the installation directory, CD D:/mongodb/bin
> D:\mongodb\bin>mongod--dbpath "d:\mongodb\data\db"
A message similar to this will appear.
Then open a new command-line window. Test it for a moment.
The result shows that it was successful.
Enter exit or CTRL + C to exit.
When Mongod.exe is closed, Mongo.exe cannot connect to the database, so it is troublesome to open the Mongod.exe program every time you want to use the MongoDB database, so we can install MongoDB as a Windows service at this time.
> D:\mongodb\bin>mongod--dbpath "d:\mongodb\data\db"--logpath "D:\mongodb\data\log\MongoDB.log"--install-- ServiceName "MongoDB"
Here MongoDB.log is the log file that was started,--servicename the "MongoDB" service named MongoDB
Then start the MongoDB service
> D:\mongodb\bin>net START MongoDB
The MongoDB service has started successfully.
Then look at the system services.
Right-click My Computer--services and apps--services
See the MongoDB service already there.
Using MONGO's visual management tools
It's ready to use. There was a record at the beginning. This is a log record.
We're done here. Mongovue tools.
MongoDB Install version Win7