MongoDB Notes--Installation articles

Source: Internet
Author: User

Installing MongoDB

  • First step: Download the installation package: official ← Click here, if the win system, note whether the 64-bit or 32-bit version, please select the correct version.
  • Second step: Create a new directory "D:\MongoDB", unzip the downloaded installation package, locate all the. exe files under the bin directory, and copy to the directory you just created.
  • Step three: Create a new "data" folder in the "D:\MongoDB" directory, which will be the root folder for data storage.


To restore a backup:

    • The first step: Enter the root directory of the MongoDB installation.
    • Step Two: Enter "Mongdb\bin\mongorestore-h localhost-d dbName Bakroot "  

DbName is the name of the database to be restored and needs to be established in advance

Bakroot is a backup file directory example: C:\mongdb_bak\dump\bak

MongoDB Notes--Installation articles

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.