1), download MongoDB http://downloads.mongodb.org/win32/mongodb-win32-i386-2.4.5.zip
2), set the MongoDB directory to unzip it to D:\, and then rename it to MongoDB , Path is D:\mongodb
3), set data file path in D: Disk to build a data folder, new DB folder in Data folder, Path D:\data\db
4), start MongoDB service into CMD prompt console, D:\mongodb\bin\ Mongod.exe--dbpath=d:\data\db Mon Apr 08:50:54 [Initandlisten] waiting for connections on port 27017 MONGODB server default connection port : 27017
5), randomly start MongoDB as Windows service first create a D:\mongodb\logs\mongodb.log file for storing MongoDB log files, and then install system services: D:\mongodb\bin\ Mongod--dbpath=d:\data\db--logpath=d:\mongodb\logs\mongodb.log--install (if prompted: Error connecting to the Service Control Manager This error, you should run CMD as administrator find the command handler C:\Windows\System32\cmd.exe right: Run as Administrator) all output going to:d:\mongodb\ Logs\mongodb.log Creating Service MongoDB. Service creation successful. Service can be started from the command line via ' net start ' MongoDB '. D:\>net start MongoDB Mongo DB service has started successfully. d:> Note: If you need to uninstall the service, execute the command: SC delete MongoDB
6), Client connection verification opens a new cmd input: d:\mongodb\Bin\mongo, D:\mongodb\bin\mongo MongoDB shell version:2.0.4 connecting to:test
7), view MongoDB logs view D:\ Mongodb\logs\mongodb.log files, you can view or debug the operation of MongoDB. Http://localhost:27017/can see the following prompt: You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number so that the MongoDB database service has successfully started. http://localhost:28017/Management
Win7 installing 32-bit MongoDB