Install MongoDB in 64-bit Windows 7 in the form of a zip package (ultra-detailed), win7mongodb

Source: Internet
Author: User
Tags install mongodb

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.





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.