(1)下载Redis安装包(linux)
?
(2)拷贝到相应的路径
?
?
(3)解压
tar -zxvf?redis-3.0.3.tar.gz
(4)编译源码
?
make
?
(5)拷贝可执行文件
makedir bin
cp redis-server ../bin
cp redis-cli ../bin/
cp redis-benchmark ../bin
cp redis.conf bin/
?
(6)启动服务
[root@localhost?bin]#?./redis-server?redis.conf?
?
?
?
?
(7)客户端连接
?
[root@localhost?bin]#?./redis-cli?
127.0.0.1:6379>?set?name?hello
OK
127.0.0.1:6379>?get?name
"hello"
?
(2)Redis自带客户端测试
redis-cli.exe -h 服务器地址 -p 端口
?
(3)telnet测试
telnet 地址 端口号
telnet 安装
?
?
?
?
?
(4)RedisClient工具测试
?http://www.oschina.net/p/redisclient
?
?
原文:http://toknowme.iteye.com/blog/2233499