下载redis
wget http://download.redis.io/releases/redis-2.8.3.tar.gz
tar zxf redis-2.8.3.tar.gz
cd redis-2.8.3
make
midir /usr/redis
cp src/redis-server /usr/redis/
cp src/redis-benchmark /usr/redis/
cp src/redis-cli /usr/redis/
cp redis.conf /usr/redis/
cd /usr/redis
启动服务
./redis-server redis.conf
客户端连接服务
cd /usr/redis
./redis-cli
127.0.0.1:6379> set feng zhan
OK
127.0.0.1:6379> get feng
"zhan"
完成!
本文转自 无心低语 51CTO博客,原文链接:http://blog.51cto.com/fengzhankui/1933017,如需转载请自行联系原作者