1. Download the compressed package and unzip it
$ sudo wget http://download.redis.io/releases/redis-3.2.8.tar.gz
$ ls
$ sudo tar -zxvf redis-3.2.8.tar.gz
2. Compile and install
$ cd /usr/local/redis-3.2.8
$ sudo make
3. Start Redis
$ cd ./src
$ ./redis-server
4. Test
Do not close the server, reopen an interactive interface, and enter the Redis directory
$ cd ./src
$ ./redis-cli
127.0.0.1:6379>ping
PONG
127.0.0.1:6379>
5. redis debug log
It is the real-time debugging monitoring log of Redis
$ cd ./src
$ ./redis-cli monitor
6. Log directory
Redis does not have a log directory by default, so we need to modify the logfile file of redis.conf
$ sudo vim redis.conf