Mongodb 1 quick start deployment

Source: Internet
Author: User
Tags temporary file storage

Mongodb 1 quick start deployment

Quick Start deployment of Mongodb

1. Download mongdb and unzip vue

I downloaded the windows zip package here.

 

 

2. decompress the package

Rename mongodb

 

 

3. Create data, log, and repair files in the mongodb directory

 

 

4. Create start. bat and repar. bat

 

 

The Start. bat code is as follows:

Mongod -- dbpath = F: \ mongodb \ data -- port 27017 -- logpath = F: \ mongodb \ logs \ mongodb. log

 

Note: -- dbpath specifies the data storage path and port number, and -- logpath specifies the log storage path

 

The Repair. bat code is as follows:

Mongod -- repair -- dbpath F: \ mongodb \ data -- repairpath F: \ mongodb \ repair \

 

Note: Specify the temporary file storage path for restoration. When mongodb unexpectedly exits and cannot be started properly, click repair.

 

5. Click start. bat to start

 

 

 

6. Open mongovue.exe.

 

 

 

 

 

Deployed successfully.

 

 

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.