Tags: grep-n attr appears to start the service grep issue link Problem yun1. InstallationTARXF redis-3.2.5.tar.gzCD redis-3.2.5MakeMkdir-p/usr/local/redis/binThe files under the SRC directory function as followsRedis-server:redis Server Daemon Startup programRedis-cli:redis command-line operation tool. You can also use Telnet to operate on its plain text protocol
, and configuration settings, so that Redis can behave more like a cache.Redis also provides a rich client to support most of the programming languages that are prevalent at this stage. A detailed support list can be see the Redis official documentation: Http://redis.io/clients. Redis itself is written using ANSI C and can run on most POSIX systems without genera
from:http://blog.csdn.net/love__coder/article/details/8691679Through the previous several blog, we should have a general understanding of Redis, here again, how to connect the Redis server to read and write data?1. Install PHP extensionsA) Install PHP extension Phpredis:[Plain]View Plaincopyprint?
[[emailprotected]tool]#gitclonehttps://github.com/nicolasff/ phpredis.gitphpredis
[[emailprotect
192.168.40.128:7000 to check the status of the cluster
Performance testing
Bring your own test tool Redis-benchmark
redis-benchmark -h 192.168.40.128 -p 6379 -c 100 -n 100000100 concurrent connections, 100,000 requests, detects Redis server performance with host l
Make #编译Make install #安装Cd/usr/local/bin #查看是否有下面文件, if not, copy the following file to the/usr/local/bin directoryCd/usr/local/redisMkdir-p/usr/local/binCp-p Redis-server/usr/local/binCp-p Redis-benchmark/usr/local/binCp-p Redis-cli/usr/local/binCp-p Redis-check-dump/usr/lo
Suppose two redis servers, IP: 192.168.1.101 and 192.168.1.103, how do I access Redis on 101 through REDIS-CLI on the 103? before remote connection 103, let's talk about some key parameters of Redis-cli:Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]-H -p -A --help, display
data is stored in the memory and then asynchronously stored to the disk (this is called the "semi-persistent mode "); you can also write every data change to an append only file (AOF) (this is called "Full persistence mode ").
1. download the latest versionWget http://redis.googlecode.com/files/redis-2.0.0-rc4.tar.gz
Ii. DecompressionTar redis-2.0.0-rc4.tar.gz
3. Install the C/C ++ compilation component (o
the Redis Database
# Select a place where the software package is stored and enter the directory file of the software package.
Command: cd/usr/local/src
# Download the redis database package
Command: wget http://download.redis.io/redis-stable.tar.gz
# Decompress the redis database package
Command: tar-zxvf
success of the architecture.
After that, I have recently studied Redis. Last year there was a memcachedb, Tokyo tyrant, Redis performance test, so far this benchmark result is still valid. Over the past 1 years we have experienced a lot of dazzling key value storage products, from the Cassandra (Twitter pause in the main business use) to the rise of HBase (Faceb
Redis-explore Redis and learn basic usage of Redis.
Author: Gigi Sayfan time: 2018.8.28Advertisement
Redis is a key-value database in the memory. It is free and open-source. It is implemented in C language and runs very fast. Redis is already a mature product (now version 3
used_memory size limit (zmalloc_size (ptr); return ptr; # else * (size_t *) ptr) = size; update_zmalloc_stat_alloc (size + PREFIX_SIZE); return (char *) ptr + PREFIX_SIZE; # endif}3. multi transaction operation (http://blog.csdn.net/androidlushangderen/article/details/40392209 ). The transaction operations in Redis gave me a new look. When I was doing this design, I used the key and watch key concepts, A key maintains a list of all watch clients. A C
Performance-related data indicators
Access the redis server through the redis-cli interface, and then use the info command to obtain all information related to the redis service. This information is used to analyze some performance indicators mentioned later in the article.
The data output by the info command can be divided into 10 categories:
Server
Clients
Assume that the two redis servers have ip addresses 192.168.1.101 and 192.168.1.103 respectively. How can I access redis on redis 101 through redis-cli on redis 103? Before remotely connecting to redis 103, let's talk about severa
, the basic environment even if the building is complete.Iv. installation of Redis1. Installing Redis
1 2 3 4 5 6 7 8 9 11
[[emailprotected] ~]# wget-c-t 0http://download.redis.io/releases/redis-2.8.19.tar.gz [[emailprotected] ~]# mkdir/usr/local/redis [[emailprotected] ~]# tar xvf redis
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.