1:下载redis安装包
http://download.redis.io/releases/redis-4.0.2.tar.gz
2:把下载好的安装包上传到/usr/local/src/
3:解压redis压缩包
tar -zxvf redis-4.0.2.tar.gz
4:cd redis-4.0.2
5:make
6:make PREFIX=/usr/local/redis install
7:移动redis配置文件redis.conf到安装目录下
cp ./redis.conf /usr/local/redis/
8:切换到安装目录下 cd /usr/local/redis/
9:启动redis服务器
./bin/redis-server ./redis.conf
10:启动redis客户端
./bin/redis-cli
11:修改配置文件redis.conf中的daemonize,把no改为yes,以后台进程启动
12:查看redis进程 ps aux|grep redis
原文:http://www.cnblogs.com/dengmingzheng/p/7636239.html