• 下载源码
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
  • 解压:
tar zxvf redis-5.0.5.tar.gz
  • 编译安装:
make&&make test&&make install

安装完成:

redis-server

clipboard.png

redis-cli
root@iZbp1anc6yju2dks3nw5j0Z:~# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> ping hello,world
"hello,world"
127.0.0.1:6379> shutdown
not connected>
  • 关闭连接

clipboard.png


风斩冰华
27 声望12 粉丝

coding