(1) on the website of MongoDB download Windows version of the MONGO installation package, the installation package is the green version of the extract can be used directly. (2) The extracted Bin folder is copied to C:\mongoDB (C:\mongoDB This folder can be arbitrarily selected, not necessarily in the C-drive) (3) in the C:\mongoDB folder under the new Data folder (4) in the c:\mongoDB\ The new DB and log folder under the Data folder (5) Creates a new MomgoDB.log under the C:\mongoDB\data\log folder to store the MongoDB log (6) Start MongoDB service, cmd command line into c:\mongoDB\ bin\ directory Mongod.exe--dbpath "c:\mongoDB\data\db"--logpath "C:\mongoDB\log\mongoDB.log"---dbpath configuration database where to store--logpath Where to configure log storage
C:\>CD Mongodb\bin
c:\mongodb\bin>mongod.exe--dbpath "c:\mongoDB\data\db"--logpath "c:\mongoDB\d ata\log\mongodb.log"
2014-06-25t20:39:21.185+0800 2014-06-25t20:39:21.195+0800 warning:32-bit servers don ' t has journaling enabl ed by Defau Lt. Please use the--journal if you want durability. 2014-06-25t20:39:21.195+0800 2014-06-25t20:39:21.195+0800 log File "C:\mongoDB\data\log\mongoDB.log" exists; Moved to "c:\mongoDB\data\log\mongoDB.log.2014-06-25T12-39-21".
(7) The current command line interface does not close, in a new CMD interface, enter the c:\mongoDB\bin\ directory to start MongoDB
C:\mongodb>bin\mongo
MongoDB Shell version:2.6.3 connecting To:test Server has startup warnings:2014-06-25t21:11:41.924+0800 [Initandlisten] 2014-06-25t21:11:41.924+0800 [Initandlisten] * * Note:this is a A-bit MongoDB binary. 2014-06-25t21:11:41.924+0800 [Initandlisten] * * [Builds bit] is limited to less than 2GB of data (or less with--j ournal). 2014-06-25t21:11:41.925+0800 [Initandlisten] * * Note that the journaling defaults to off for the and is currently off . 2014-06-25t21:11:41.925+0800 [Initandlisten] * * See Http://dochub.mongodb.org/core/32bit 2014-06-25t21:11:41.925+08 xx [Initandlisten] >
(8) If the above interface indicates that MongoDB started successfully