下载 wget http://download.redis.io/releases/redis-4.0.9.tar.gz 创建redis配置目录 mkdir /etc/redis/conf -p 解压 tar xf redis-4.0.9.tar.gz cd redis-4.0.9/ 复制文件 cd /usr/local/redis-4.0.9/src cp redis-cli /etc/redis/ cp redis-server /etc/redis/ cd /usr/local/redis-4.0.9 cp redis.conf /etc/redis/conf 启动 nohup ./redis-server redis.conf &