rhel6/ubuntu14
# wget http://download.redis.io/releases/redis-3.0.5.tar.gz
# yum install gcc tcl
# tar -zxf redis-3.0.5.tar.gz
# cd redis-3.0.5
# make
# make test
# sudo make install
这样可执行文件就从redis-3.0.5/src拷贝到/usr/local/bin
启动服务(6379端口要打开)
# redis-server
或
# redis-server /path/to/redis.conf
在客户端安装(同上)
# redis-cli -h 192.168.122.18
redis> set foo bar
OK
redis> get foo
"bar"