can use redis-cli ping test to connect to the redis-server that was just started on the local machine. If PONG is returned, the connection is successful.
Directly press redis-cli to enter the redis command for testing:
Root @ 816ebd247014 :~ # Redis-cli pingPONGRoot @ 816eb
Automatic Redis installation and deployment
This article consists of four parts:
Description of the directory structure of the redis automatic installation script;
Redis automatic installation script content;
Description of the redis Operating System Service script;
The URL of the document referenced in this article.
N
1, download the source package redis-2.8.21.tar.gz, and upload it to the specified directory /urs/src, and then unzip it:[Email protected] src]# TAR-XVF redis-2.8.21.tar.gzEnter the extracted directory and execute the following command to specify the installation directory as /urs/local/redis:[Email protected] src]# CD redis
as the installation of Python, Entering redis-2.0.2, here are a few files:
Redis-server.exe Redis Server Daemon Startup programredis.conf Redis configuration fileRedis-cli.exe Redis Command Line operation tool. Of course, you can also use Telnet to operate on its plain t
1 Redis Introduction and InstallationRedis is an open source, advanced key-value Storage and a perfect solution for building high-performance, scalable Web applications.The three main features that Redis inherits from its many competitions are:Redis The database is completely in memory and the disk is used for persistence only. Redis has a rich set of data types
The preface has just written a comparison of three popular products in NoSQL, this time writing about some things about Redis, the introduction of Redis, installation and extension (Php-redis, because I am phper) installation and so on. It is also written to my friends (CCCJJJZ) as well as to my own later installation use.Table of Contents 1.
; 'val1 ', 2 => true, 3 => 'val2 ');*/
Watch command/method/function descriptionwatches a key for modifications by another client. if the key is modified between watch and exec, the multi/exec transaction will fail (return false ). monitors whether a key is modified by other clients. If the key is modified between the Watch () and exec () calls, batch processing of the final exec () execution will fail. Through some experiments, the effect of this fun
accepting foreign write requests# Min-slaves-to-write 3# Min-slaves-max-lag 10If there is greater than or equal to 3 connections from Redis with a delay greater than 10 seconds, then the master Redis will no longer accept external write requests. If one of the two configurations is set to 0, this feature will be turned off4. Safety (Security)############################# SECURITY ##########################
3.2.3 HyperloglogsRedis added the Hyperloglog algorithm in version 2.8.9.3.2.4 Publish/Subscribe featureA Redis Publish Subscription (PUB/SUB) is a message communication pattern: the Sender (pub) sends a message and the Subscriber (sub) receives the message. Redis clients can subscribe to any number of channels.Subscribe to a channel on a client redis
This is a creation in
Article, where the information may have evolved or changed.
Go get Github.com/alphazero/go-redisGo get Github.com/simonz05/godisGo get Github.com/garyburd/redigoGo get Github.com/gosexy/redisGo get Cgl.tideland.biz/redis
At present these five kinds of
Use of open Source Library Redigo
GitHub Address:Https://github.com/garyburd/redigo
Document Address:Http://godoc.org/github.com/garyburd/redigo/
jquery, rdis is generated purely for applications. Here we record the following learning articles on centos 5.7:1. redis Introduction
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 pus
nodes
Cluster can continue to work when some nodes are hung or unreachable
TCP ports for Redis clusters
Each node in the Redis cluster needs to establish 2 TCP connections and listen to these 2 ports: One port is called the "client Port", which is used to accept client instructions, interact with the client, such as 6379, and the other port is called "Cluster bus port", which adds 10000 to
Transferred from: http://www.cnblogs.com/weafer/archive/2011/09/21/2184059.htmlPhpredis is an extension of PHP, the efficiency is quite high with the list sorting function, to create a memory-level module business relationshipThis is useful for Redis's official command:As follows:Https://github.com/owlient/phpredis (Redis 2.0.4 supported)Redis::__construct constructor function$
. You can directly echo" $0 ". What I show here is-su.
7. Test the redis commandAfter entering the container, you can use redis-cli ping test to connect to the redis-server that was just started on the local machine. If PONG is returned, the connection is successful.
Directly press redis-cli to enter the
that corresponds to the transition from Redis to LUA:Lua boolean true Redis integer reply with value of 1/lua Boolean true converted to Redis integer 1 in replyThe following are examples of several types of conversions:
> eval "return" 0
(integer)
> eval "return {1,2,{3, ' Hello world! '}}" 0
1) (integer) 1
2) (integer) 2
3) 1) (integer) 3
2) "Hello world!"
single thread, even if the cache-flush-delay is set to 0, multiple clients need to wait in queue for simultaneous writing, if the queue capacity exceeds the cache-max-memory redis design, it enters the waiting state, causing the caller to get stuck.
On Google group, enthusiastic netizens quickly completed the stress test. When the memory is used up, the processing speed of set per second dropped from 25
Introduction to Redis:First, IntroductionRedis is an open source, Key-value database that is written in C and that supports network interaction and can be persisted based on memory. Redis source code is very simple, as long as there is time to see rectification C language, to see the source of Redis can read 50-60%. The current largest cluster of Redis should be
foobared4.16. Set the maximum number of client connections at the same time, the default is unlimited, Redis can open the number of client connections for the Redis process can open the maximum number of file descriptors, if set maxclients 0, indicating no restrictions. When the number of client connections reaches the limit, Redis closes the new connection and
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.