Install MongoDB in 64-bit win7 in the form of a zip package (ultra-detailed)
First, download the zip package of the corresponding version from the official mongodb website.
If you use Windows 64-bit 2008 R2 + or win7, install the Hotfix patch. You can download the corresponding version from the Internet.
After decompression, you will get the following directory:
<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + kernel/wryho87s1ele77xexl/CvMrH1eLR + kernel/kernel + xNrI3cirsr + kernel + vNAgoaM8L3A + CjxpbWcgc3JjPQ = "http://www.2cto.com/uploadfile/Collfiles/20150521/20150521100905110.png" alt = "\">
Create a MondoDBDATA folder on the disk. Here, my path is like this: F: \ MongoDBDATA
In the cmd window, locate the bin directory under the F: \ MongoDB path, and then execute mongod.exe -- dbpath F: \ MongoDBDATA.
Configure the environment variable: Set the F: \ MongoDB \ bin path (for different paths, see your own path .) After adding the path to the environment variable (do not know how to set the environment variable? Right-click my computer, select Properties> advanced system Settings> environment variables)
Next, install the MongoDB database as a windows service.
First, add the following content to the mongod. cfg file in the F: \ MongoDB directory:
Logpath = F: \ MongoDB \ logs \ MongoDB. log
Dbpath = F: \ MongoDBDATA
One is the log output file and the other is the data storage file.
Run the following command: mongod -- config F: \ MongoDB \ mongod. cfg -- install
If your path is different, refer to your path and change the command above.