(Redishttp://redis.io/download)
Installation steps:
1, first need to install GCC, put the downloaded redis-3.0.0-rc2.tar.gz into the linux/usr/local folder
2, the decompression TAR-ZXVF redis-3.0.0-rc2.tar.gz, after decompression will appear the following directory
3. Go to the redis-3.0.0 directory and compile make
4, into the SRC under the installation make install verify (ll view the directory under SRC, with Redis-server, Redis-cil can)
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, the redis-3.0.0 under the redis.conf moved to/USR/LOCAL/REDIS/ETC under,
cp/usr/local/redis-3.0.0-rc2/redis.conf/usr/local/redis/etc/
7, the redis-3.0.0/src in the
mkreleasehdr.sh, Redis-benchmark, redis-check-aof, Redis-check-dump, REDIS-CLI, Redis-server
To move the file to the bin, command:
mv/usr/local/redis-3.0.0-rc2/src/mkreleasehdr.sh
/usr/local/redis-3.0.0-rc2/src/redis-benchmark
/usr/local/redis-3.0.0-rc2/src/redis-check-aof
/usr/local/redis-3.0.0-rc2/src/redis-check-dump
/usr/local/redis-3.0.0-rc2/src/redis-cli
/usr/local/redis-3.0.0-rc2/src/redis-server
/usr/local/redis/bin
8, start and specify the configuration file:/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf (note to use background boot, so modify the redis.conf in the Daemonize Change to Yes)
9. Verify the boot success: PS-EF | grep redis to see if there is a Redis service or view port: NETSTAT-TUNPL | grep 6379
10. Go to Redis client:/usr/local/redis/bin/redis-cli quit client quit command
11. Opt-Out of Redis services
(1) Pkill redis-server,
(2) Kill process number,
(3)/USR/LOCAL/REDIS/BIN/REDIS-CLI shutdown
Installing Redis under Linux