[root@centos-7 downloads]# wget https://download.redis.io/releases/redis-6.2.1.tar.gz
[root@centos-7 downloads]# tar -xvf redis-6.2.1.tar.gz
[root@centos-7 downloads]# mv redis-6.2.1 /opt
[root@centos-7 downloads]# cd /opt/redis-6.2.1
[root@centos-7 redis-6.2.1]# vi redis.conf
修改daemonize no为daemonize yes
[root@centos-7 utils]# mkdir /etc/redis
[root@centos-7 redis-6.2.1]# cp redis.conf /etc/redis/6379.conf
[root@centos-7 redis-6.2.1]# cd utils
[root@centos-7 utils]# cp redis_init_script /etc/init.d/redis_init_script