安装:源码编译安装
登录官网:https://redis.io/ 获取下载地址
下载:wget http://download.redis.io/releases/redis-5.0.5.tar.gz
解压:tar xzvf redis-5.0.5.tar.gz
切换目录:cd redis
查看:cat INSTALL
预编译:make
解决中途报的错误:yum install gcc make malloc=libc
编译:make install
启动:redis-server start/restart
/tmp/redis/src/redis-server
netstat -anpl | grep redis
停止:redis-server stop
客户端:redis-client
/tmp/redis/src/redis-cli
set x hello
get x
del x
CONFIG SET protectec-mode no
telnet 127.0.0.1 6379
LPUSH x_list redis mysql memcache
LRANGE x_list 0 10
quit