Install MongoDB in 64-bit Windows 7 in the form of a zip package (ultra-detailed), win7mongodb
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:
Create a directory under a directory. The directory here is F: \ MongoDB, and all the files extracted in the previous step are copied to the F: \ MongoDB folder.
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.