Redis(REmote DIctionary Server)基础

                                      作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

  Redis是一个开放源代码(BSD许可)的内存数据结构存储,用作数据库、缓存和消息代理。它支持字符串、哈希、列表、集合、带范围查询的排序集合、位图、超日志、带半径查询和流的地理空间索引等数据结构。Redis具有内置的复制、Lua脚本、LRU收回、事务和不同级别的磁盘上持久性,并通过Redis Sentinel和Redis群集的自动分区提供高可用性。官方地址:https://redis.io/

  在生产环境中Redis一般有三种用途,可以用作数据库(Database),缓存(Cache),消息队列(Message Queue)。因此不关你是开发还是运维人员,学习一下Redis还是很有必要的!

 

一.安装Redis

1>.本篇博客操作环境介绍

[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# uname -r
3.10.0-957.el7.x86_64
[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# uname -m
x86_64
[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# 

2>.安装epel源

[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# ll /etc/yum.repos.d/        #安装epel源之前
total 4
drwxr-xr-x. 2 root root   30 Mar 23 22:29 back
-rw-r--r--. 1 root root 2523 Mar 23 22:26 CentOS-Base.repo
drwxr-xr-x. 2 root root  187 Mar 23 22:26 default
[root@node101.yinzhengjie.org.cn ~]# 
[root@node101.yinzhengjie.org.cn ~]# ll /etc/yum.repos.d/        #安装epel源之前

相关文章:

  • 2022-01-26
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-08-31
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案