1.下载

wget https://download.redis.io/redis-stable.tar.gz

2.编译环境

yum install -y cmake make gcc gcc-c++

3.编译安装

tar -xzvf redis-stable.tar.gz
cd redis-stable
make
make install

4.验证

redis-server

发表评论