1: 下载 wget http://download.redis.io/releases/redis-2.8.9.tar.gz
2:解压 tar xvfz redis-2.8.9.tar.gz
3:编译 cd redis-2.8.9 ,sudo make
4:安装 sudo make install
5:启动服务 /usr/local/bin/redis-server
测试连接
$ redis-cli
redis> set foo bar
OK
redis> get foo
"bar"