下载redis(官网地址https://redis.io/download)
资源地址:https://download.redis.io/releases/redis-6.2.5.tar.gz
进入/user/local目录(wget https://download.redis.io/releases/redis-6.2.5.tar.gz)
1)解压缩(/user/local)
tar -xzvf redis-6.2.5.tar.gz
2)编译(/user/local/redis-6.2.5)
make
3) 安装(/user/local/redis-6.2.5)
make PREFIX=/usr/local/redis-6.2.5 install
4)启动(/usr/local/redis-6.2.5/bin)
./redis-server ./redis.conf
./redis-cli shutdown(关闭redis)
5)连接redis(/usr/local/redis-6.2.5/bin)
./redis-cli