———— Reprint at Daybreak
First, login to the Redis official website Download redis-3.0.7.tar.gz
Second, upload to your own server via FTP tool
#还可以通过wget http://download.redis.io/releases/redis-3.0.7.tar.gz
Third, TAR-ZXVF redis-3.0.7.tar.gz decompression
CD redis-3.0.7; Since no redundant code has been developed, it is not necessary to perform the./configure configuration and execute the make compile command directly.
Five, make finished but change to src directory, CD src; this directory has redis-server, REDIS-CLI, Redis-benchmark, redis-check-aof, redis-check-dump these files
Where Redis-server is the starting Redis script file, REDIS-CLI is a terminal action script, Redis-benchmark is a stress test script, redis-check-aof, Redis-check-dump the script file that detects the backup file.
VI. In the SRC directory under the redis-3.0.7 folder directory, execute the following command to create the running directory for Redis
Mkdir/usr/local/redis
CP Redis-cli Redis-server/usr/local/redis
Cd.. /go back to the redis-3.0.7 directory
CP Redis.conf/usr/local/redis
Cd/usr/loca/redis
./redis-server start Redis (this boot is the front-start mode)
If you want to configure the back-end startup mode
Vim redis.conf
/daemonize no find daemonize No to change no to Yes, it's simple.
Later in this directory, you start from a new Redis
./redis-server redis.conf
ps-a | grep Redis to see if the Redis process is started. It's OK!
The./REDIS-CLI will be able to enter the Redis command-line mode.
Installation of Redis under Linux