Download and install Redis on Linux: The following is the download and installation process. If you just want to install quickly, then just look at the commands in the picture. All download and install commands are in the picture.
1. Download the Redis installation package in the home directory.
Download the Redis installation package command: wget http://download.redis.io/releases/redis-5.0.5.tar.gz
2. Unzip the compressed package to get a file named redis-5.0.5.
Unzip command: tar xf redis-5.0.5.tar.gz
3. I want to install Redis to the /usr/locat/ directory, so the following operation is to move the redis-5.0.5 folder to the /usr/locat/ directory and rename it to the redis file
4. Go into the redis directory and execute the make command to compile the redis file
5. After the compilation is successful, enter the src directory and execute the command make install to install redis
6. To facilitate management, move the conf configuration file and common commands in the Redis file to a unified file, and create the etc and bin folders
7. Move the redis.conf file to the etc folder.
Execute the command: mv redis.conf /usr/local/redis/etc/
Enter the src directory and move mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server to /usr/local/redis/bin/
Execute command: mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server /usr/local/redis/bin/
8. Execute redis-server to start redis
9. Enter the etc directory and execute vim redis.conf (if this command does not work, use the vi redis.conf command, because there is no vim command for the CentOS minimal installation) command to open the redis.conf file
Find daemonize in the redis.conf file and change no to yes
10. Start the redis service again, and specify the startup service configuration file.
redis-server /usr/local/redis/etc/redis.conf
Redis is installed, I wish you success