wget http://labfile.oss.aliyuncs.com/files0422/redis-2.8.9.tar.gz
tar xvfz redis-2.8..tar.gz
cd redis-2.8.
make
make install
make test
cd src
cp redis-server /usr/local/bin/
cp redis-cli /usr/local/bin/
#启动Redis-server
redis-server
ps -ef | grep redis
netstat -nlt|grep
#启动Redis-client
redis-client
set mykey somevalue
get mykey
#不覆盖
set mykey newval nx
#覆盖
set mykey newval xx
set counter
#加1
incr counter
#加10
incrby counter
mset a b c
mget a b c