1、下载https://redis.io/download/ 2、解压tar -zxvf redis-7.2.4.tar.gz3、编译cd redis-6.2.6make4、运行src/redis-server5、连接src/redis-cli