Problem Description:
On the newly installed CentOS7, install the MongoDB3.4, mount a large data disk, modify the/etc/mongo.conf, put the log and data directory in the configuration file under the new data disk, and modify the file access rights.
Background information:
Because the Linux server used for development is in a relatively closed environment, only 22 ports are accessed via SSH. So I used putty to do an SSH forwarding to map the 27018 port of this machine to the remote 27017 port.
Add a MongoDB service to a random boot
Vi/etc/rc.local
Use the VI Editor to open the configuration file and add the following line of code to it
/usr/local/mongodb/bin/mongod-dbpath=/usr/local/mongodb/data/db--fork--port
See a lot of people search Java and MongoDB, then write point Java Operation MongoDB Project experience. MongoDB Java-driven basic operations can be seen here.
In fact, the MongoDB Java driver can accomplish most of the operations and requirements.
1. Review: The previous study of MongoDB's basic command learning
2. This article will learn to use the MongoDB C # drivers to implement add-delete and check
3. Preparation:
3.1 C # drivers support situation
In the face of the current learning,
Because the document structure of MongoDB is in the Bjson format (bjson full name: Binary JSON), and the Bjson format itself supports data in binary format, you can save the data in binary format of the file directly into the MongoDB document
MongoDB Replica set
First, Introduction:
In simple terms, the replica set (Replica set) is the master-slave cluster with automatic fault recovery. The most obvious difference between a master-slave cluster and a replica set is that the replica set
MongoDB Account Management (user name password settings) By default does not require the account password, in/etc/mongodb.conf set auth = True after restarting the account permission function. 1, create the admin Super Privilege: MONGO www.2cto.com
It is a gradual process to collect my own understanding of MongoDB's advantages and disadvantages, or to reference or extract from other reliable online files, it also expands with my understanding of MongoDB.
(1) MongoDB limitations
1. Uneven
1. Download mongodb-win32-x86_64-2.2.1 to any drive letter or any directory
2. Create a new batch file to install the MongoDB server to the service:
D :\ " Program Files " \ Mongodb-win32-x86_64- 2.2 . 1 \ Bin \ mongod-dbpath " D: \
Today, I saw a very good MongoDB client tool named mongovue at http://www.mongovue.com /. It's a good job. Version 1.0 starts to charge fees, and the cost is only 35 $. If you really need someone to pay for it, you can buy it. This tool is also
It is a sub-module of MongoDB. gridfs can be used to store files persistently Based on MongoDB. it also supports distributed applications (File distributed storage and reading ). gridfs is a tool for users to store large objects in MongoDB. It has a
It has been a long time before the previous text. On the one hand, my work is a little busy, and I have encountered some problems which have not been solved yet. In this case, I willArticleAt the end of this article, let's go to the topic of this
[From: http://like-eagle.iteye.com/blog/850401]
Compared with relational databases, MongoDB has the following advantages:① Weak consistency (eventual consistency) ensures the user access speed:For example, in a traditional relational database, a
Backup and recovery are important technologies for data storage. This is only a single machine learning record operation.MongoDB supports backup and recovery. The backup format is bson and the backup format is JSON and CSV.
A) export bson formatIt
Following the previous article, this article is mainly implemented by the C # version of Mongo map-Reduce. If you are not familiar with the C # driver, it doesn't matter. The MongoDB official website has a good getting started article, you will soon
Design and Implementation of mongodb auto-incrementing primary key id Generator
Article: http://blog.csdn.net/5iasp/article/details/8794396
Author: javaboy2012Email: yanek@163.comQq: 1046011462
Scenario: assume there are two systems:
System A
First, list the level parameters of WriteConcern that throw exceptions:
WriteConcern. NONE: No exception is thrown.
WriteConcern. NORMAL: only throw network error exception, no server error exception
WriteConcern. SAFE: throws a network error or
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