description of the installation and deployment of Redis under the Linux environment1, First officer network Download Redis compressed package, address: Http://redis.io/download Download stable version 3.0.7 can.2, through the Remote management tool, the compressed package copy to the Linux server, to perform the decompression operation3. Perform make to compile
Third, add the directory where the Redis command resides to the system parameter pathTo modify a profile:
1
Vi/etc/profile
Append in last line:
1
Export path= "$PATH:/usr/local/redis/bin"
Then apply this file immediately:
1
. /etc/profile
This makes it possible to invoke the
, it's all gone after power failure.
Redis is a good alternative to Memcached.
MongoDB is a NoSql database suitable for storing and querying formatted documents. It can be used for massive data storage. After all, it is a hard disk database, it is not comparable to the Redis cache database. If there are so many discussions on the internet, I will not talk about it here. For details, refer to document 1.
Redis cluster creation and deployment documentation
Redis cluster creation and deployment documentation
1. Install dependencies (not always install so many dependencies. I have installed mysql and php in my environment, so I didn't need to test the dependencies. I have to install them all)Yum-y install make apr * autoc
Redis installation and deployment graphic tutorial
Redis is a key-value storage system. Similar to Memcached, But it solves the problem that data is completely lost after power-off, and she supports more undefined value types. Besides string, it also supports lists (linked list), sets, and zsets. These data types support push/pop, add/remove, Intersection Set and
itself is also a standalone process that can monitor multiple master-slave clusters and discover that Master is down and able to switch on its own.Its main function has the following pointsPeriodically monitor whether Redis works as expected;If a Redis node is found to be running, it can notify another process (such as its client);Ability to switch automatically. When a master node is unavailable, it is po
, you can use a cluster, which is distributed storage. That is, each Redis stores a different content, with a total of 16,384 slots. Each redis has some slot,hash_slot = CRC16 (key) mod 16384 find the corresponding slot, the key is the available key, if there is {} then take {} as the available key, or the entire key is available key cluster requires at least 3 master 3 from, and each instance uses a differ
This article mainly introduces the basic knowledge, installation, deployment, and configuration notes of Redis. This article describes the basic knowledge, the configuration of installing Redis, Redis, and so on. For more information, see
Basic knowledge
1. Redis data type:
using a script. When the redis Server is hung up, the data is restored to memory at the following priority level when restarting:If only AOF is configured, the AOF File recovery data is loaded when the reboot is restarted;If RBD and AOF are configured at the same time, only the AOF File recovery data is loaded at startup ;If you configure only RBD, the dump file recovery data will be loaded at startup . The recovery should be noted that if the main l
Redis Cluster Deployment1. Installation of Redis 3.0.1, see Redis 3.0.1 Installation and configuration2. Create a DirectoryMkdir-p/usr/local/redis/70003. Copying filescd/tmp# Copy the default configuration document CP redis-3.0.1/redis.conf/usr/local/
default, and when we set a key, we use the CRC16 algorithm to modulo the slot that belongs to it, and then divide the key into the node of the hash slot interval. , the specific algorithm is: CRC16 (key)% 16384Note that it is necessary to have 3 master nodes later, otherwise the cluster will fail, and the slot interval for each of the three nodes is: Node A covers 0-5460; Node B covers 5461-10922; Node C covers 10923-16383.So in accordance with the
modified sequentially, but the port number needs to be changed according to the actual;3. Start Redis#每个节点都需要启动/usr/local/bin/redis-server/opt/redis/cluster/redis-7000.conf #检查redis状态ps-aux|grep Redis4. Configuring the GEM Environment#安装gem需要1.8.7 version above, if not need
First, Redis Introduction
Redis is one of the most popular NoSQL systems, and it is a key-value storage system. Similar to memcache, but largely compensates for the lack of memcache, which supports a relatively large number of stored value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection-set and difference sets and richer operations. On thi
Redis Multi-machine cluster deployment documentation (CENTOS6.2)(To make the cluster work at least 3 primary nodes, here we will create 6 Redis nodes, of which three are the primary node, three are slave nodes, the corresponding Redis node IP and port correspondence is as follows)10.168.32.116:637910.168.32.117:637910.
The official description of Redis:Redis is a open source, BSD licensed, Advanced Key-value cache and store. It is often referred to as adata structure server since keys can contain strings, hashes, lists, sets, sorted set S, bitmaps andhyperloglogs.Redis is an open source, BSD licensed, advanced " key-value " cache with storage . It is often referred to as a data structure server because keys can be strings, hash tables, lists, collections, ordered collections, bitmaps, and hyperloglogs.Introduc
. rdbcompression : Whether to use compression Dbfilename : Data Snapshot file name (only file name, excluding directory) dir : The Save directory for the data snapshot (this is the directory) Requirepass : # Set Redis connection Password, if the connection password is configured, the client is connected Redis is requiredto pass AUTH The command provides a password, which is closed by default. appendon
command is executed on target_id, the cluster of the nodes on the entire cluster Nodes information remains the same
16 problems encountered in deploying the Redis cluster:
16.1 occurs when installing software: insserv:starting Redis depends on Ondeman and therefor on system facility ' $all ' which
The reason is: before the deployment of
Redis Cluster Deployment documentation (UBUNTU15.10 System)(To make the cluster work at least 3 primary nodes, here we will create 6 Redis nodes, of which three are the primary node, three are slave nodes, the corresponding Redis node IP and port correspondence is as follows)127.0.0.1:7000127.0.0.1:7001127.0.0.1:700212
First, Redis introduction
Redis is one of the most popular NoSQL systems, and it is a key-value storage system. Similar to memcache, but largely compensates for the lack of memcache, which supports a relatively large number of stored value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection-set and difference sets and richer operations. On this
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.