MongoDB development has been to 2.6 version, since the acquisition of 100 million U.S. dollars in the wind, the development speed is much faster than before, because the previous period of time to use the cache, but also compared to MongoDB, we also feel that it is more suitable for non-relational big data storage, so the system statistical analysis of the function of it.
The installation of MongoDB is very simple, here first gives the author's installation environment: Windows 2003 Server, installed mongodb2.6 32-bit version
The installation of MongoDB is more and more simple and takes only 2 steps to complete.
First step: Download the latest version of 2.6, unzip to D-Disk mongodb-2.6
The second step: open cmd, enter the d:\mongodb-2.6, execute Mongod.exe-dbpath d:\mongodb-2.6\data, see the content of the tablets to calculate the installation is successful.
There is another way to start, which is how config is configured:
- In the Data folder to build a etc folder, create a new mongodb.conf file, the content is as follows
Dbpath=d:\mongodb-2.6\data #数据库路径
Logpath=d:\mongodb-2.6\data\logs\mongodb.log #日志输出文件路径 Logappend=true
Journal=true
Quiet=true
port=27017
2. Open cmd, enter d:\mongodb-2.6, execute
Mongod-config d:\mongodb-2.6\data\etc\mongodb.conf
The same effect.
Each run may be accidentally turned off, and always show that the cmd window is also very uncomfortable to look at, so you can use the command to install MongoDB as a service.
Mongod--dbpath d:\mongodb-2.6\data--servicename mongodbservice--servicedisplayname mongodbservice--install-- LogPath D:\mongodb-2.6\data\logs\mongodb.log
Actual