yum install gcc
wget http://download.redis.io/releases/redis-3.0.7.tar.gz tar zxvf redis-3.0.7.tar.gz cd redis-3.0.7 #如果不加参数,linux下会报错 make MALLOC=libc安装好之后,启动文件
nohup src/redis-server &#关闭redis
src/redis-cli shutdown测试redis
$ src/redis-cli 127.0.0.1:6379> set foo bar OK 127.0.0.1:6379> get foo "bar" $测试成功