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!