一.简介
redis是NoSQL类的缓存数据库,基于键-值型的存储,不仅是内存中的缓存,还提供持久存储。redis整个运行是在内存中实现的,它的所有的数据集都是保存在内存中的,内存中的数据会周期性的写入到磁盘上,以实现数据的持久功能。
redis是单线程服务器,只有一个线程来响应所有的请求,因此适用于适合少用户访问,每个用户大量的读写的场景,也支持支持分布式集群部署,可以将用户的请求分散至多个不同节点,集群多是单机多实例架构。 Redis哨兵(Redis sentinel)是Redis高可用解决方案之一,它由一个或多个哨兵实例组成,这些实例会监控主服务器和其从服务器,并在主服务器出现故障时自动进行故障转移。
二.部署
1.相关参考部署地址
官方地址 https://redis.io/ | |
github项目地址 https://github.com/redis/redis |
2.安装
基础环境centos7.4
2.1 安装依赖
2.2下载编译安装
2.3systemd管理配置
2.4修改配置文件,避免非授权认证登录,但不兼容aclfile
2.5登录测试