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
// Change Daemonize No to daemonize Yes
6. Add Redis to boot boot
// Add content inside:/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf (meaning to start calling this section of the Redis command)
7. Turn on Redis
/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf
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
Linux installation Redis