最新稳定版本是2.4.5,安装很简单:
- $ wget
-
$ tar xzf redis-2.4.5.tar.gz
-
$ cd redis-2.4.5
-
$ make
集群功能还未提供,目前可通过在客户端做hash的方法来构建
Redis集群。The Redis core team is already hacking on Redis Cluster. We already have have some kind of experimental version in the unstable branch, while a Release Candidate or at least a fully working beta is expected for the end of 2011.
期待原生的集群功能。
运行:
内置客户端试用Redis:
- $ src/redis-cli
-
redis> set foo bar
- OK
-
redis> get foo
- "bar"
停止运行
- 在启动Redis的窗口中Ctrl-C 或
-
src/redis-cli shutdown
阅读(1150) | 评论(0) | 转发(0) |