1. Download redis from redis official website
Install the latest version directly
2. After downloading, put it in linux
3. Unzip to /opt
tar -zxvf redis-6.2.6.tar.gz
4. After decompression, enter redis and install the source code
make
If there is a problem or something, add sudo in front and continue the installation
After installation, you can run make or make install again to check
5. Jump to /usr/local/bin, check the directory, you can find that the redis installation has been completed
6. Add a myredisconfig folder in this directory (the name is random!!!)
Then put redis.conf in the redis directory in it
cp /opt/redis.6.2.6/redis.conf ./myredisconfig
7. Use this configuration to log in to redis
redis-server myredisconfig/redis.conf
8. Let's check the system process
ps -ef|grep redis
9. Go to the cli page
redis-cli
10. Test link
11. Exit command: shutdown Pay attention to decide whether to save NOSAVE|SAVE
12. Check the port process again