https://www.cnblogs.com/kaiwen-000/p/15606225.html
进入官网找到下载地址:https://redis.io/download
进入到Xshell控制台
[root@centos ~]# cd /usr/local [root@centos local]# mkdir redis [root@centos local]# cd redis/ [root@centos local]# wget https://download.redis.io/releases/redis-6.2.4.tar.gz
wget 复制的链接
等待下载完成
[root@centos redis]# tar -zxvf redis-6.2.4.tar.gz [root@centos redis]# ls
输入ls可以看到安装好的目录
[root@localhost redis-6.2.4]# make
[root@centos redis-6.2.4]# make PREFIX=/usr/local/redis install
后台进程方式启动
[root@centos redis]# ./bin/redis-server &
[root@centos redis]# ps -ef | grep redis
[root@centos redis]# yum -y install gcc-c++
[root@centos redis]# make MALLOC=libc