Win7 install 64-bit MongoDB diagram detailed tutorial

  

One. Download MongoDBMongoDB's official website is: http://www.mongodb.org/, my operating system
is win7 64-bit, the installation version is 64-bit MongoDB 2.4.8

Two. Install MongoDB

1. Unzip mongodb-win32-x86_64-2008plus-2.4.8 to D drive, at D:\\mongodb-win32-x86_64- 2008plus-2.4.8 create data folder, create db, log two folders under D:\\mongodb-win32-x86_64-2008plus-2.4.8\\data respectively

2. Under the log folder Create a log file MongoDB.log, ie D:\\mongodb-win32-x86_64-2008plus-2.4.8\\data\\log\\MongoDB.log

Three. Installation method


1. Start MongoDB

Open the cmd window and enter the following dos command in the window, as shown below:



Under normal circumstances , will be as shown below:



Open mongo.exe in the D:\\mongodb-win32-x86_64-2008plus-2.4.8\\bin folder, The following figure appears:



2. Test mongoDB

>db.foo.insert({name:’Hello world’ }) (insert name to the foo table, & rsquo;Hello worl d & rsquo; field value, foo table is the default table)

>db.foo.find() (view foo table data)

As shown below:

< Br>

Copyright © Windows knowledge All Rights Reserved