Centos7 安装redis 3.20

安装redis
直接安装:


实操过程:

安装脚本:

过期时间参数说明:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/centos-install-redis/

[volatile-lru|allkeys-lru|volatile-random|allkeys-random|volatile-ttl|volatile-lfu|allkeys-lfu|noeviction]
VolatileLRU
按照LRU算法逐出原有数据,但仅逐出设置了过期时间的数据
VolatileTTL
仅逐出设置了过期时间的数据,并且是按照TTL有小到大的顺序进行逐出
AllKeysLRU
按照LRU算法逐出原有数据
VolatileRandom
随机逐出原有数据,但仅逐出设置了过期时间的数据
AllKeysRandom
随机逐出原有数据
NoEviction
不逐出任何数据,新数据的写入会得到一个错误信息
VolatileLFU
只从设置失效(expire set)的key中选择最不常用的key进行删除
AllkeysLFU
优先删除掉最不常用的key 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/centos-install-redis/

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/centos-install-redis/文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/centos-install-redis/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onMay 19, 2017
  • 原文链接:https://note.t4x.org/basic/centos-install-redis/
匿名

Comment

Anonymous

Slide puzzle verification.