MongoDB Learning and application one: Install and simply test MongoDB

Source: Internet
Author: User
Tags arrays mongodb

MongoDB is a powerful, flexible, and scalable way of storing data. It expands the relational database and so on. A lot of crap, for a new language or technology, to understand the technical background is one hand, practical practice is also essential. Here I am going to send some articles about MongoDB from getting started to project application, as well as making some technical predictions. Get started with MongoDB basic applications, distributed deployments, and more.
A: From the Mongodb.org official website, learn about MongoDB
Download the latest documents from the MongoDB website to see, of course, you can choose to download the document (Mongodb-manual.pdf) to the local for retrieval, MongoDB as an open source NoSQL database also brings the advantages of flexible, efficient and easy to expand. Document Database

A record in MongoDB was a document, which is a data structure composed of field and value pairs. MongoDB documents is similar to JSON objects. The values of fields are include other documents, arrays, and arrays of documents.

A MongoDB document.

The advantages of using documents Are:documents (i.e. objects) correspond to native data types in many programming Langua Ge. Embedded documents and arrays reduce need for expensive joins. Dynamic schema supports fluent polymorphism. Key Features High Performance

MongoDB provides high performance data persistence. In particular, the support for embedded data models reduces I/O activity on the database system. Indexes support faster queries and can include the keys from embedded documents and arrays. High availability

To provide high availability, MongoDB ' s replication facility, called replica sets, provide:automatic failover. Data redundancy.

A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and increasing data avai Lability. Automatic Scaling

MongoDB provides horizontal scalability as part of its core functionality. Automatic sharding distributes data across a cluster of machines. Replica sets can provide eventually-consistent reads for low-latency high throughput deployments.
      II: Install and simply test the MongoDB database, familiar with the brief command
installation is very simple, only need to download the latest MongoDB program on the official website, Unzip to the local disk. The rest is simple configuration and testing is used. Unzip the MongoDB to the local E:\mongodb and create a new DB folder to use as the data store. After doing this, in the cmd-typing command, under the E:\mongodb\bin directory, turn on the Mongdb service and set the data storage path (DBPath). The


Console prompts you to access the MongoDB Web console via http://localhost:28017/ .
Reopen a CMD window, enter the Mondodb bin file path, and use the MONGO command to open the console and automatically connect to test db. To do this, the local MongoDB service has been installed and debugged completely.





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.