Install MongoDB under Win7
System environment: Win7 64-bit database: mongodb-win32-i386-v2.4
The first step, of course, is to download http://www.mongodb.org/downloads
The second step decompression Mongodb-win32-i386-v2.4-latest.zip For example decompression to D:\installsofts\mongodb
Step three set the environment variable to set the $mongodb\bin to the system's environment variable path
Fourth step: Profile configuration New file Mongo.config in the extracted home directory such as here D:\installsofts\mongodb fill in the following
# #store Data to define a
dbpath=d:\devsofts\mongodata
# #all output Go Define a location to store log files
logpath=d:\devsofts\mongolog\mongo.log
# #log Read and write operations
diaglog=3
These paths, if not specified, will be under the C disk, which is obviously not very well managed.
Fifth step: Install start MongoDB Server to use D:\installsofts\mongodb\bin>mongod.exe--config under cmd D:\installsofts\mongodb\ Mongo.config--install
..... Sat June 17:26:10.713 Service can be started to the command line with ' Net s tart MongoDB '
Then start the service: d:\installsofts\mongodb\bin>net start MongoDB Mongo DB service is starting. The Mongo DB service has started successfully.
Sixth step: D:\installsofts\mongodb\bin>mongo Landing mongodb Shell Environment
Shutdown Service: net stop MongoDB removal service: D:\installsofts\mongodb\bin>mongod.exe--remove
When we went to see the data and log directory, there are new files produced.