Recently due to work needs, to begin to contact with MongoDB, so began to study MongoDB, the first step of research, naturally from the installation and use began. There will certainly be more research and study, so prepare to make a series of related notes for later review.
1.Windows Version Installation
1) version download
Mongodb:http://www.mongodb.org/downloads
Download the corresponding version, here I downloaded the 64-bit.
The installation process is simple, similar to normal software installation, most of which are next, the type of customs selected during installation, and the custom installation directory is D:/mongodb
OK, until the last step finished, complete the MongoDB installation
2) Set the data file path
Create a new logs and data folder inside D:\MongoDB
Create a new Mongodb.log file inside D:\MongoDB\logs
2. Configure the Mongo server:
Enter the D:\MongoDB\bin directory, press the shortcut key Ctrl+shift, and right-click, the right menu will appear the following line of options
Click to open the Command Line window and go directly to the corresponding directory
Enter the following command:
Mongod--dbpath D:\MongoDB\data--logpath=d:\mongodb\logs\mongodb.log--install
The following interface appears in carriage return:
At the command line input net start MongoDB, enter start MongoDB
MongoDB Learning Note Installation and use of MongoDB