Redis Official website: https://redis.io/download
It is very easy to install Redis under Linux, as described in the following steps (official website):
1) Download the source code, unzip and compile the source code.
$ wget http://download.redis.io/releases/redis-4.0.2.tar.gz$ tar xzf redis-4.0.2.tar.gz$ cd redis-4.0.2$ make
2) After compiling, in the redis-4.0.2 directory, there are 1 executable files redis.conf. And then copy it to a directory.
Mkdir/usr/local/redis
CP Redis.conf/usr/local/redis
3) After compiling, there are four executable files Redis-server, Redis-benchmark, Redis-cli and redis.conf in the SRC directory. And then copy it to a directory.
CP redis-server/usr/local/rediscp REDIS-BENCHMARK/USR/LOCAL/REDISCP redis-cli /usr/local/redis
4) Enter the/usr/local/redis directory
Cd/usr/local/redis
5) Start Redis service
./redis-server./redis.conf
6) Access to the Redis client
./redis-cli
127.0.0.1:6379> Set name haha
Ok
127.0.0.1:6379> Get Name
"Haha"
127.0.0.1:6379>
7) exit the Redis client
Quit
8) Stop Redis Service
./redis-cli-p Port number shutdown
Linux installation Redis