Install the initial configuration of MongoDB in Win7, win7mongodb

Source: Internet
Author: User
Tags install mongodb

Install the initial configuration of MongoDB in Win7, win7mongodb

1. Download www.mongodb.org

Ii. Installation

Decompress the package to a directory without spaces. My directory is D: \ Program Files \ MongoDB \

After Windows starts, right-click cmd.exe and choose run as Administrator (this is very important, because if the default user is not a super administrator, there is no way to install MongoDB as a service)


Switch to the installation directory \ bin directory

 

Enter: mongod -- logpath "D: \ Program Files \ Mongo

DB \ Server \ 3.0 \ data \ log \ MongoDB. log "-- logappend -- dbpath" D: \ Program Files \ Mongo

DB \ Server \ 3.0 \ data \ db "-- serviceName" MongoDB "-install

In this way, you can install mongoDB as a service.

Note:

1. The logpath parameter is not a directory but a log file name.

2. The directory and file in the command must exist. If not, an error is returned.


3. Start

After the command is executed, the service is established but not started. You can find it in the System Service (the service name is the corresponding parameter of serviceName ).

If not, follow the steps described in step 2 as a super administrator.

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.