补充一个redis的下载地址:
http://redis.io/download/
参考:
http://blog.csdn.net/poechant/article/details/6707688
1. 下载安装
- $ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz
- $ tar xzf redis-2.2.12.tar.gz
- $ cd redis-2.2.12
- $ make
2. 运行
- $ src/redis-server
3. 缓存SET
- $ src/redis-cli
- redis> set foo bar
- OK
4. 缓存GET
- redis> get foo
- "bar"
补充:
done