Installation of Redis
Http://redis.io/download
Installation steps:
1 put the downloaded redis-3.2.6-rc2.tar.gz into the linux/usr/local folder.
2 Unzip the TAR-ZXVF redis-3.2.6.tar.gz
3 Go to the redis-3.2.6 directory and compile make "execute made"
4 go to src installation make install "Execute make Install command" verification (see the directory under SRC, with REDIS-SERVER,REDIS-CLI)
5 Set up two folders to hold Redis commands and configuration files
Mkdir-p/usr/local/redis/etc
Mkdir-p/usr/local/redis/bin
6 Move the redis.conf under the redis-3.2.6 to/usr/local/redis/etc
7 The mkreleasehdr.sh, the Redis-benchmark, the redis-check-aof, the REDIS-3.2.6/SRC,
Redis-check-dump, REDIS-CLI, redis-server files move to the bin, command:
MV mkreleasehdr.sh Redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server/usr/local/redis/bin
8 When you start and specify a profile:./redis-server/usr/local/redis/etc/redis.conf
(Note to use the background to start, all modify redis.conf in the daemonize change to Yes)
9 Verify that the startup is successful:
Ps-ef|grep Redis to see if there is a Redis service
or view port: Netstat-tunpl|grep 6379
Enter the Redis client./redis-cli [-H ip-p 6379] Exit client quit
To exit the Redis service:
(1) Pkill Redis-server
(2) Kill process number
(3)/USR/LOCAL/REDIS/BIN/REDIS-CLI shutdown
Redis Combat _01_yucong_redis installation