MongoDB Download and Installation

Source: Internet
Author: User
Tags mongodb mongodb download

Download

MongoDB's official website is: http://www.mongodb.org/
Can be downloaded on the official website, but I tried a special trouble, all found a simple way, you can download directly at this address zip,http://dl.mongodb.org/dl/win32/x86_64

Installation

1. Feel free to create your favorite path, C:\lucas\mongodb
2. Under C:\lucas\mongodb, download the zip file under decompression, and then create a new Data folder under C:\lucas\mongodb C:\lucas\mongodb\data
3. Then set up the Db,log two folders respectively, at this point MongoDB has the following folder
C:\lucas\mongodb\bin
C:\lucas\mongodb\data\db
C:\lucas\mongodb\data\log
Create a log file under the log folder MongoDB.log, which is C:\lucas\mongodb\data\log\MongoDB.log
4. Command-line installation

C:\lucas\mongodb\bin>mongod -dbpath "C:\lucas\mongodb\data\db"
    • 1

Open http://127.0.0.1:27017/after installation is complete
See

It looks like you is trying to access MongoDB over HTTP on the native driver port.
The instructions have been installed successfully.

5. Operation:
Double-click the Mongod.exe under Bin (Note that D, this is the starter program)
After the startup program is turned on, run the Mongo.exe program (note that there is no d), the interface is as follows
Test database Operations

>help  (查看相关信息)>db.foo.insert({a:1})    (往foo表插入a,1字段值,foo表为默认表)>db.foo.find() (查看foo表数据)

MongoDB Download and Installation

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.