Installation under MongoDB windows

Source: Internet
Author: User
Tags mongodb download mongodb windows

(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
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.