MongoDB Quick Start Note (i) Install MongoDB method under Windows _mongodb

Source: Internet
Author: User
Tags install mongodb mongodb mongodb download

MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for WEB applications.

MongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database.

mongodb Download Address:http://www.mongodb.org/downloads

1. Installation MongoDB

Download MongoDB from MongoDB, I downloaded the 64-bit version of 3.2.6. After downloading, install directly, my installation directory is D:\work\MongoDB.

2, configure the MONGODB environment variable

Add D:\work\MongoDB\Server\3.2\bin to the path. (Configure environment variables for easier execution of commands under bin)

3, Start MongoDB

When starting MongoDB, use the Mongod command,--dbpath set the path of the database,--logpath set the path of the log file

Mongod--dbpath D:\work\MongoDB\data--logpath D:\work\MongoDB\log\mongodb.log

More parameters can be viewed using the command Mongod Help.

Appendix 1: Using the configuration file to set Mongod parameters

New file mongodb.conf under D:\work\MongoDB, write in file

DBPath = D:\work\MongoDB\data
LogPath = D:\work\MongoDB\log\mongodb.log

Using commands

Mongod-f D:\work\MongoDB\mongodb.conf

Appendix 2: Start the MongoDB as a service

Mongod--dbpath "D:\work\MongoDB\data"--logpath "D:\work\MongoDB\log\mongodb.log"--install "--servicename"

Start MongoDB service: net start MongoDB

Stop MongoDB service: net stop MongoDB

Delete MongoDB Service

Mongod--remove--servicename "MongoDB"

The above is a small set to introduce the MongoDB Quick Start Note (i) under the Windows installation MongoDB method of knowledge, I hope to help!

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.