Redis installation under Linux

Source: Internet
Author: User

Step One:

Download the installation package (Redis Please change according to your specific needs, tar.gz suffix file installation steps unchanged):

Baidu Network disk: HTTP://PAN.BAIDU.COM/S/1NVPSLCD Extract code: 69GJ

Step Two:

Compile the source program (not the green version, after the decompression needs to compile and install):

Tar ZXVF redis-2.6.15.tar.gz

CD redis-2.6.15

Make

CD src && make install

Note: (1) The Make command is entered into the compilation; (2) && indicates that the previous command executed successfully executes the following command.

Step Three:

move files for easy management:

mkdir -p/usr/local/redis/bin

mkdir -p/usr/local/redis/etc

MV /usr/local/redis/redis-2.6.15/redis.conf/usr/local/redis/redis-2.6.15/etc

CD /usr/local/redis/redis-2.6.15/src

MV    mkreleasehdr.sh  redis-benchmark  redis-check-aof   redis-check-dump  redis-cli redis-server  /usr/local/redis/bin 

Description: ( 1 ) bin : Store command, etc : Storage of documents; 2 ) mkdir of the - P option allows you to create multiple levels of catalogs at once rather than just creating separate directories at a time.

Step Four:

to start the Redis Service:

/usr/local/redis/bin/ Redis-server

/usr/local/redis/etc/ redis.conf



To see if the launch was successful:

Ps-ef | grep Redis

NETSTAT–TUNPL | grep 6379


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/87/3F/wKioL1fY9VLR4r1nAAFFgMDafa8396.png "title=" 1.png " alt= "Wkiol1fy9vlr4r1naaffgmdafa8396.png"/>


Description: Redis the default port on the server is 6379 .

Step Five:

client connections:

/usr/local/redis/bin/redis-cli


Description: CLI is a Client abbreviations.

Step Six:

to stop a Redis instance:

/usr/local/redis/bin/redis-cli shutdown

Or

Pkill Redis-server

Or

Kill All

Or

Kill -9


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/87/42/wKiom1fY9WzS_3P7AABbLwwbtDs118.png "title=" 2.png " alt= "Wkiom1fy9wzs_3p7aabblwwbtds118.png"/>


This article from "11020801" blog, declined reprint!

Redis installation under Linux

Related Article

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.