yum install gcc-cc++wget http://download.redis.io/releases/redis-4.0.2.tar.gzcp redis-4.0.2.tar.gz /usr/localcd /usr/localtar -xvf redis-4.0.2.tar.gzcd redis-4.0.2makemake PREFIX=/usr/local/redis/redis installcd /usr/local/redis/redis/bin./redis-server
客户端连接:
./redis-cli