Simple application of Pymongo library
The Pymongo library is a library of Python operations MongoDB. The following is a brief introduction to the simple use of Pymongo. Create MONGO client Select database and set merge insert Data
Import
Original address: http://keben1983.blog.163.com/blog/static/143638081201010591157929/
This document is translated from the [mongodb-docs-2010-10-24.pdf] [Java Language Center] section of the document and is organized according to your own
1 Experiment master-slave replication and verify replication success
2 experimental replica set, and verify that the auto switch primary successful.
=======================================================================
1.1. Start Master
Using Nginx to reverse generation of Nodejs, each app can become more independent.
I. Installation of Nginx
Http://nginx.org/en/linux_packages.html#stable
On this page, select the corresponding system version
This is centos5.
Download installation
There is not a lot to know about MongoDB, but in this limited cognition, it is found that its nosql features are distinct.
Because the nosql of the relationship is very interesting and feels more comfortable than relational databases like MySQL.
So
See the following figure, is through the jqgrid to achieve the basic table data additions and deletions to check the operation. Table data additions and deletions are common enterprise application system development features, but the difference is
MongoDB Account Management (username password settings) By default does not require an account password, in/etc/mongodb.conf set auth = True Restart the Open Account permission function. 1, create admin Super Permission: MONGO www.2cto.com use admin;
1. Structure and principle of replica set
The replica set consists of three nodes: the master node, the slave node, and the quorum node.The master node is responsible for processing client requests, reading and writing data, and recording the
Fixed collection:
Property 1. Insert the fixed set very quickly
Attribute 2: Query output in the order of insertion is extremely fast
Attribute 3: Ability to retire the oldest data when inserting the latest data
Usage 1: Store log information
Usage
1. Copying a database
1.1 db.copydatabase (fromdb,todb,fromhost,username,password,mechanism)
The following four options are optional:
Fromhost: The host address of the source DB, if it can be omitted within the same Mongod instance, username: If
MongoDB Getting Started column
Http://blog.csdn.net/column/details/19681.html
MongoDB document CRUD OperationsQuerying documents The basic syntax for querying a document using MongoDB is as follows:
Db.collection_name.find (query, projection) #
Remember to run CMD in Administrator mode, or the service will fail to start.详细图解,记录 win7 64 安装mongo数据库的过程。安装的版本是 MongoDB-win32-x86_64-2008plus-ssl-3.4.1-signed。-Download and install, figure a little more, not afraid of wordy, afraid enough.The
(1) to Robomongo official website download, official website address (https://robomongo.org/) Select the appropriate version.(2)
Tar-xzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
CD Robo3t-1.2.1-linux-x86_64-3e50a65 (if you move to a
GrammarThe syntax format for MongoDB query data is as follows:>db. Collection_name.find ()The Find () method displays all documents in an unstructured manner.If you need to read the data in an easy-to-read way, you can use the pretty () method,
Using the @repository interface provided by Springboot, you can accomplish the custom work that once required a lot of code writing and configuration files. These configurations, which previously gave novice programmers a headache and were proud of
First, through the RPM installation 1, System preparationOur system version isCentOS Linux release 7.3.1611 (Core)2. installation package Download: http://mirrors.aliyun.com/mongodb/yum/redhat/, can be selected according to your own system
MongoDB official explanation of Security Verification:
Http://www.mongodb.org/display/DOCS/Security+and+Authentication
In MongoDB, Service Startup does not have permission verification by default. In terms of security, this is definitely not
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