Compile the source code on CentOS5/Redhat5 to install Redis

Source: Internet
Author: User
Tags redis version redis cluster install redis
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:

    ,

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.