MongoDB, master and slave configuration
A MongoDB installation
The code is as follows
Copy Code
[Root@zabbix_server src]# wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.0.tgz[Root@zabbix_server src]# tar xzvf mongodb-linux-x86_64-2.0.0.tgz[Root@zabbix_server src]# MV
GridFS is a mechanism for storing large binary files in MongoDB. There are several reasons for saving files with GridFS:
Grid can simplify requirements. If you have used MongoDB, GridFS does not need to use an independent file storage architecture.
GridFS will directly use the established replication or sharding mechanism, so it is easy for
MongoDB data file backup and recovery backup and recovery data are important for managing any data storage system. 1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, direct copy
open the Bin folder under the MongoDB folder and execute the mongo.exe file. The MongoDB Shell is an interactive JavaScript shell that comes with MongoDB and is used to manipulate and manage MongoDB.When you enter MongoDB backstage. It is linked to the test document (databa
First step: Download the installation packageWe first need to download MongoDB's installation package, directly to the official website to download. The address is: https://www.mongodb.com/download-center#community.See if your operating system is 32-bit or 64-bit select a different installation package to download.Step Two: Install the softwareInstall after the download is complete. When installing, we choose to customize the installation, choose the
First, the preparatory work:run the Yum command to view MongoDB package information
Copy Code code as follows:
[ROOT@VM ~]# Yum Info mongo-10gen
(Hint has no relevant matching information,)
The Yum source in your CentOS system does not contain MONGODB related resources, so you need to increase the Mong
local connections are allowed. The process binds and listens for application connections from this address. If you need to connect to other servers, you need to comment out this or to change the IP address, such as 192.168.200.201[other servers with MONGO--host=192.168.200.201 connection], you can use a comma-delimited list to bind multiple IP addresses.BIND_IP = 127.0.0.1Maxconns: Maximum number of connections. Default value: Depends on the system (
Label:Http://www.cnblogs.com/wintersun/p/4622205.html In the development of all kinds of System application server, we often encounter the problem of file storage. Common disk File system, DBMS traditional file stream storage. Today we look at the storage scheme based on the
In the development of all kinds of System application server, we often encounter the problem of file storage. Common disk File system, DBMS traditional file stream storage. Today we look at the storage scheme based on the NoSQL database
Backing up and recovering data is important for managing any data storage system.1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, the direct copyMongoDB stores all the data in the data directory, the default is/data/db/(under Windows C:\data\db\), when starting Mong
Tags: mongod registration Pat ODB REGISTRATION System Tar class IMG Direct1. Configure the MONGODB environment variable, after the configuration is completed, you can directly execute Mong, mongod and other common commands, not every time to the MongoDB installation directory bin down execution; 2. Start the MONGO service by command Mongod--dbpath = D:\
In the bin directory of MongoDB, there is a mongoexport that can be used for data export[Email protected] bin]$/mongoexport--Helpusage:mongoexportExport Data fromMongodbinchCSV or JSON format. See http://docs.mongodb.org/manual/reference/program/mongoexport/for more information.General Options:--Help Print Usage--version Print the tool version and exitverbosity options:-V,--verbose= forMore verbosity, e.g. -VVVVV, or specify a numeric value, e.g.--ver
address.
If you need to connect to another server, you need to comment out this or change the IP address to a single comma-delimited list of multiple IP addresses. Bind_ip = 127.0.0.1 #maxConns: Maximum number of connections. Default value: Depends on the system (that is, the Ulimit and file descriptor) limits. MongoDB does not restrict its own connections. When
1. Connect to the Linux system first.2. Download the appropriate MongoDB install compression package to the MongoDB website.Download page: Https://www.mongodb.org/downloads#production.Here i download the Linux 64-bit legacy: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.7.tgz# wget Https://fastdl.mongodb.or
Mongo DB is a kind of non relational database (NOSQL) which is very popular in the IT industry, and its flexible data storage is favored by current it practitioners. Mongo db is a good way to implement object-oriented thinking (OO), where each record in Mongo DB is a document object. The biggest advantage of Mongo DB is that all data persistence operations require no developer to manually write SQL statements, and the direct invocation of the method makes it easy to implement CRUD operations.
F
on the RDD, such as the classic WordCount program, which operates as shown in the Spark programming model: You can see that spark first abstracted from the file system RDD1, and then by RDD1 through the flatmap operator to RDD2,RDD2 then Reducebykey operator to get RDD3, finally the data in the RDD3 back to the file system
MongoDB configuration file Configuration:Step 1: create a file in the "D: \ MongoDB" directory. The command method is not limited. For example, create a MongoDB. step 2 of conf: In MongoDB. in Conf, configure the required configur
When making a MongoDB shard, when the MONGOs routing service is enabled, we specify a location for the log to be stored:MONGOs--configdb 127.0.0.1:27019--logpath/var/log/mongodb/mongos.log--pidfilepath/var/run/mongodb/mongos.pid-- Logappend--logrotate Reopen--forkAbove we specify the location of the log in the/var/log/mongodb
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 structure. However, because the maximum length of a bjson cannot exceed 4M, it limits the maximum number of files that can
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.