Redis安装
$ wget http://download.redis.io/releases/redis-5.0.3.tar.gz $ tar xzf redis-5.0.3.tar.gz $ cd redis-5.0.3 $ make
启动
$ src/redis-server
$ src/redis-server redis.conf
启动客户端
$ src/redis-cli
简单插入查询
redis> set foo bar OK redis> get foo "bar"
修改配置 redis.conf
# bind 127.0.0.1
supervised no
daemonize no
protected-mode no
查看密码
config get requirepass
设置密码
config set requirepass abcdefg
永久修改密码修改 redis.conf文件
requirepass 123
开源版连接工具 RedisStudio
https://github.com/cinience/RedisStudio/releases
开源地址
https://github.com/antirez/redis
Spring支持
https://spring.io/projects/spring-data-redis
https://github.com/spring-projects/spring-data-redis
https://github.com/spring-projects/spring-data-keyvalue-examples