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