Compile the source code on CentOS5Redhat5 and install Redis | InstallRedisonCentOS5Redhat5
Compile the source code on CentOS 5/Redhat 5 to Install Redis | Install Redis on CentOS 5/Redhat 5
Compile the source code on CentOS 5/RedHat 5 to Install Redis | Install Redis on CentOS 5/Redhat 5
Environment
Redhat 5.7 64bit/CentOS 5 64bit
Gcc 4.1.2
Compile and install Redis
Three steps: Download, decompress, compile and install.
Wget tar xzvf redis-2.8.4.tar.gz-C/home/nieyong/download/buildcd/home/nieyong/download/build/redis-2.8.4make PREFIX =/home/nieyong/local/redis-2.8.4 install
Note:
1) For more detailed installation instructions, see Redis README.
2) The light yellow background color is modified according to the actual environment.
Start Redis
Go to the bin subdirectory of the Redis installation directory.
Cd/home/nieyong/local/redis-2.8.4/bin./redis-server -- port 9999
The following message is displayed on the console:
[31726] 16 Jan 15:30:32. 946 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 992. _. __. -''__''-. __. -'''. '_. ''-. _ Redis 2.8.4 (00000000/0) 64 bit. -''. -". "\/_., _''-. _(',. -'|',) Running in stand alone mode | '-. _'-... -'__... -. ''-. _ | ''_. -'| Port: 9999 | '-. _'. _/_. -'| PID: 31726 '-. _'-. _'-. /_. -'_. -'| '-. _'-. _'-. __. -'_. -'_. -'| '-. _'-. __. -'_. -'| '-. _'-. _'-. __. -'_. -'_. -'| '-. _'-. _'-. __. -'_. -'_. -'| '-. _'-. __. -'_. -'| '-. _'-. _'-. __. -'_. -'_. -''-. _'-. __. -'_. -''-. __. -''-. __. -'[31726] 16 Jan 15:30:32. 955 # Server started, Redis version 2.8.4 [31726] 16 Jan 15:30:32. 955 * The server is now ready to accept connections on port 9999 test Redis
Go to the bin subdirectory of the Redis installation directory.
. /Redis-cli-h 127.0.0.1-p 9999127.0.0.1: 9999> pingPONG127.0.0.1: 9999> set name Yong OK127.0.0.1: 9999> get name "\ xe8 \ x81 \ x82 \ xe5 \ x8b \ x87" 127.0.0.1: 9999> set username nieyongOK127.0.0.1: 9999> get username "nieyong" References
<正文结束>
You may also like the following articles about Redis. For details, refer:
Install and test Redis in Ubuntu 14.04
Basic configuration of Redis slave Replication
Redis cluster details
Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis
Redis series-installation, deployment, and maintenance
Install Redis in CentOS 6.3
Learning notes on Redis installation and deployment
Redis. conf
Redis details: click here
Redis: click here
This article permanently updates the link address:
,