首先要做的就是安装redis 安装方法:http://redis.io/download Installation Download, extract and compile Redis with: $ wget http://download.redis.io/releases/redis-2.8.19.tar.gz $ tar xzf redis-2.8.19.tar.gz $ cd redis-2.8.19 $ make The binaries that are now compiled