安装gcc
yum -y install gcc
下载redis
curl -O http://download.redis.io/releases/redis-3.2.8.tar.gz
解压
tar -zxvf redis-3.2.8.tar.gz
转换目录
cd redis-3.2.8/deps/
编译依赖
make geohash-int hiredis jemalloc linenoise lua
转换目录
cd ..
编译Redis
make && make install
转换目录
cd utils/
使用脚本安装服务
./install_server.sh
启动服务
systemctl start redis_6379
systemctl status redis_6379