Install and configure Mongodb in win7 to start at random.

Source: Internet
Author: User

Install and configure Mongodb in win7 to start at random.
Mongodb in win7 only needs to decompress the package to the corresponding folder, and then add it to the win7 path. Opening it under the CMD command may cause the server to reject it actively, so we chose to add it to the win7 service. The specific method is:
You need to create the following content in the folder below the path:

Data, logs Folder:


Then create a write address in mongod. cfg:
Logpath = D: \ mongodb \ logs \ mongodb. log
Dbpath = D: \ mongodb \ data
Run cmd as the administrator to enter the Directory and run the following command:
Mongod -- config D: \ mongodb \ mongod. cfg -- install
It will be displayed

Finally, enter services. msc in the running window or right-click the computer, choose manage> services and applications> services, and find Mongodb to enable the Service.


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.