MongoDB Tutorial First lesson mongodb download installation

Source: Internet
Author: User
Tags mongodb download mongodb tutorial

MongoDB is a high-performance, open-source, modeless document-based database that is a popular one in the current NoSQL database. It can be used in many scenarios to replace the traditional relational database or key/value storage methods. MONGO is developed using C + +. Take the window platform as an example.

Http://www.mongodb.org/downloads

Installation:

    1. First step: Download the installation package: If it is a win system, note whether it is a 64-bit or 32-bit version, please select the correct version.
    2. Second step: Create a new directory "D:\MongoDB", unzip the downloaded installation package, locate all the. exe files under the bin directory, and copy to the directory you just created.
    3. Step three: Create a new "data" folder in the "D:\MongoDB" directory, which will be the root folder for data storage.

Configure the MONGO service side:

Database server Mongod.exe and Administrative Tools Mongo.exe

Open the cmd window and enter the command as follows:
> D:
> CD D:\MongoDB
> Mongod--dbpath D:\MongoDB\data

After the configuration is successful, you will see the following screen:

In the browser input: http://localhost:27017/, you can see the following prompt:
You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number

Thus, the MongoDB database service has been successfully started.

To test a simple JavaScript statement with Mongo.exe:

D:\mondb>mongo

>3+3

6

>db

>test

> Db.foo.insert ({a:1}) > Db.foo.find () {_id: ..., a:1}> show dbs...> show collections...> Help

MongoDB Tutorial First lesson mongodb download 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.