1.创建安装目录
mkdir /usr/local/redis
cd /usr/local/src
2.获取安装包:wget http://download.redis.io/releases/redis-2.8.12.tar.gz
3.解压 tar xzf redis-2.8.12.tar.gz
4.安装gcc yum –y install gcc yum –y install jemalloc
5.安装redis yum –y install redis
6.启动 service redis restart
时间: 2024-10-12 04:19:42