简单记录一下 redis的官网:https://redis.io/ docker安装redis、官网介绍: Installation Download, extract and compile Redis with: $ wget http://download.redis.io/releases/redis-3.2.9.tar.gz
$ tar xzf redis-3.2.9.tar.gz
$ cd redis-3.2.9
$ make The
1、 快照的方式持久化到磁盘自动持久化规则配置save 900 1save 300 10save 60 10000上面的配置规则意思如下:mysql和redis的数据一致性、# In the example below the behaviour will be to save:# after 900 sec (15 min) if at least 1 key changed# after 300 sec (5 min) i