Preface
I have recently studied MongoDB, mysql, MSSQL, and Oracle, but they are all SQL-based and table-based relational databases. I understand it, but I know something about it. MongoDB is based on documents. So what is MongoDB? Five Things should
Install mongodb rpm package and mongodbrpm packageMonfoDB is an open-source document database that provides common performance, high availability, and automatic scaling.
The record in MongoDB is a document, which is a structure consisting of fields
7.mongo command line run JavaScript scriptYou can manipulate the data and manage MongoDB by writing JavaScript scripts at the command line. For more information, see How to use the [Running. js files via a MONGO shell Instance on the Server] () in
Operating System: CentOS 7.0 64-bit
MongoDB database version:mongodb-linux-x86_64-2.6.5
preparatory work: MongoDB Database Installation
Specific actions:
First, configure the MongoDB main Library
The following
MongoDB Concept Analysis
No matter what database we learn, we should learn the basic concepts, the basic concept in MongoDB is the document, the collection, the database, we introduce each one.
The following table will help you to understand some
MongoDB Getting Started column
Http://blog.csdn.net/column/details/19681.htmlabout MongoDBMongoDB, written by the C + + language, is an open-source NoSQL database system based on distributed file storage, which, under high load, adds more nodes to
Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://elain.blog.51cto.com/3339379/760266
Start Configsvr
1. Ensure that the configsvr of the MONGDB is started in service mode, that is, from the script under/ETC/INIT.D, and that the user is mongod.
2. Ensure that the Mongod configuration files are identical.
3. Ensure that all keyfile
I. Index 1, index operation 1.1 inserting data> use testdbswitched to db testdb> for (i=1;i db.students.find().count()100001.2 Creating an Index在name字段构建升序索引:> db.students.ensureIndex({name: 1}){ "createdCollectionAutomatically" : false,
Then the last chapter在单台服务器资源充分的情况下,可以使用多实例,以便充分使用服务器资源由于我在虚拟机中做的所以恢复了快照开启服务systemctl start mongod.servicenetstat -ntap>show dbs //查看数据库admin 0.000GBlocal 0.000GBconfig 0.000GB>use school //进入school 虽然但是有集合了后会自动创建> for(var i=1;i show dbsadmin
Use Use the database name to create the database and return the database statement formatIf it already exists: usedatabase_name >use mynewdbSwitched to DB mynewdbUse ? db name to check the currently used database > DBMynewdbusing Commands ?
OverviewMongoDB shards are a way to store data using multiple servers to support huge data stores and manipulate data. Shard Technology can meet the demand of a large number of MONGODB data volume, when a MongoDB server is not enough to store
MongoDB defaults to No access restrictionsNote: Windows-based platforms MongoDB after the native installation is well-deployed1. Enter the command: Show DBS, you will find it built with two databases, one named admin, one named Local. Local does not
In order to save the user data and business data for a site, a database is usually required. MongoDB and node. JS are particularly well-matched because MongoDB is a document-based, non-relational database that is stored in Bson (the lightweight
MongoDB has been used for a long time, and MongoDB-based data storage has not been used to access permissions (MongoDB defaults to unrestricted access restrictions), today took a little time to study, the research results are as follows:Note: The
MongoDB do cluster, version 3.2 of the recommended cluster mode replica set preparation server 3 two standard node (these two nodes directly can be mutually primary secondary). A arbiter node, holding a ballot in its hand, determines which of the
1. First download the MongoDB installation package on the Internet, I use the 3.2 version on this side;2. Install the MongoDB Setup program, set the environment variables after installation, the installation path of my side is: "C:\Program
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.