下载redis:wget http://download.redis.io/releases/redis-3.0.7.tar.gz
解压:tar -xvf redis-3.0.7.tar.gz
进入redis-3.0.7目录:cd redis-3.0.7
安装gcc环境:yum install gcc c++
编译:make
安装:make PREFIX=/usr/local/redis install (设置安装目录为/usr/local/redis)
将redis-3.0.7文件夹下的redis.conf拷贝至/usr/local/redis/bin下:cp redis.conf /usr/local/redis/bin
进入/usr/local/redis/bin:cd /usr/local/redis/bin
启动redis:./redis-server redis.conf
关闭redis:./redis-cli shutdown