Window under MongoDB configuration

Source: Internet
Author: User
Tags mongodump

1. Download Mongodb-win32-x86_64-2008plus-ssl-v3.6-latest extract to

D:\mongodb

2.cmd = Does the path have an environment variable if not configured

3. Create D:\mongodb\data\db and D:\mongodb\logs\mongodb.log, D:\mongodb\ config\ mongod.cfg

Mongod.cfg content:

BIND_IP = 0.0.0.0

Dbpath=d:\mongodb\data

Logpath=d:\mongodb\logs\mongodb.log

Logappend=true

Directoryperdb=true

#noauth =true

#auth =true

4. Configure and install the service

#mongod--logpath d:\mongodb\logs\mongodb.log–logappend equivalence and LogPath, logappend in Cofig

Mongod.exe--config "d:\mongodb\Config\mongod.cfg" –install installation Service

Mongod.exe--remove--servicename "MongoDB" Uninstall service

5. Start the service and install the MongoDB visualizer

Net Start MongoDB

Net Stop MongoDB

MongoDB Visualization Tool:

6. Effect Display

7. Remote Backup Restore

Mongodump-h 127.0.0.1-d Library name-C table name-O D:\mongobackup

such as: Mongodump-h 192.168.1.106-d quesions-o D:\mongobackup

Mongorestore-h 127.0.0.1-d irectoryperdb f:\ mongobackup \confirm.bson

Window under MongoDB configuration

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.