The installation and use of MongoDB

Source: Internet
Author: User

1. Download MongoDB

Address: "Https://www.mongodb.com/download-center?jmp=nav#atlas" seems to need to register, you can download from below

"Http://dl.mongodb.org/dl/win32/x86_64"

2. Installing MongoDB

3. Create a database folder under the installation path: data/db

4. Start the MongoDB service, as below, and specify the database path as follows

5. Verify that the service is started

Enter address in reference to the port address on the CMD log: Indicates success

6. Start the client:

7. Insert Operation:

Db.test.insert ({' A ': ' B '})

8. MongoDB service can be written into the service:

(1) Create log file path C:\test\MongoDB\Server\3.4\data\logs\mongo.log

(2) Admin cmd run:

Mongod--bind_ip 0.0.0.0--logpath C:\test\MongoDB\Server\3.4\data\logs\mongo.log--logappend--dbpath C:\test\ Mongodb\server\3.4\data\db--port 27017--servicename "MongoDB"--servicedisplayname "MongoDB"--install

(3) Successful configuration

The installation and use of MongoDB

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.