Installation:
1. Get Redis Resources
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
2. Unzip
Tar xzvf redis-4.0.8.tar.gz
3. Installation
CD redis-4.0.8
Make
CD src
Make install Prefix=/usr/local/redis
4. Move the configuration file to the installation directory
Cd.. /
Mkdir/usr/local/redis/etc
MV Redis.conf/usr/local/redis/etc
5. Configure Redis for background boot
vi/usr/local/redis/etc/redis.conf//Change daemonize no to daemonize Yes
6. Add Redis to boot boot
Vi/etc/rc.local//Add content inside:/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf (meaning is to start calling this section of the command to open Redis )
7. Turn on Redis
/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf
8. Configuring the REDIS-CLI Environment
sudo vim/etc/profile
Write: Export path=</usr/local/redis/bin/redis-cli>: $PATH
You can use command redis-cli to start the Redis client under any path
Common commands
redis-server/usr/local/redis/etc/redis.conf//Start Redis
Pkill Redis//Stop Redis
To uninstall Redis:
Rm-rf/usr/local/redis//Delete the installation directory
rm-rf/usr/bin/redis-*//Delete all Redis-related command scripts
rm-rf/root/download/redis-4.0.4//Delete Redis Unzip folder
From: https://www.cnblogs.com/lauhp/p/8487029.html
Linux Download Installation configuration Redis complete steps