#个人习惯或要求安装目录cd /usr/local/mkdir rediscd redis#下载rediswget http://download.redis.io/releases/redis-5.0-rc4.tar.gz#解压tar -zxvf redis-5.0-rc4.tar.gz cd redis-5.0-rc4#编译 可先使用 "make test"make#将文件重定义路径mkdir usr/rediscp redis.conf /usr/redis cd srccp redis-cli /usr/redisredis-server /usr/rediscd /usr/redis#在配置文件设置绑定ip,密码等设置,如果无需更改可不修改vim redis.conf# If the master is password protected (using the "requirepass" configuration# directive below) it is possible to tell the slave to authenticate before# starting the replication synchronization process, otherwise the master will# refuse the slave request.## masterauthrequirepass yourpwd#后台启动redis nohup ./redis-server redis.conf &#测试./ redis-cli127.0.0.1:6379> auth yourpwdOK127.0.0.1:6379> set test 1234OK127.0.0.1:6379> get test"1234"127.0.0.1:6379>
安装完毕