一、部署环境 二、部署Cluster 1.修改redis配置文件,开启cluster(六台机器上) 2、安装ruby依赖(参考:https://www.cnblogs.com/ding2016/p/7903147.html) 3、创建cluster(先使用六个节点创建) 三、测试cluster相关功 ...
分类:
其他好文 时间:
2019-01-14 01:03:05
阅读次数:
233
前言 Redis是常用基于内存的Key-Value数据库,比Memcache更先进,支持多种数据结构,高效,快速。用Redis可以很轻松解决高并发的数据访问问题;作为实时监控信号处理也非常不错。 环境 Ubuntu 18.04 安装Redis服务器端 安装完成后,Redis服务器会自动启动,我们检查 ...
分类:
系统相关 时间:
2019-01-12 18:59:45
阅读次数:
252
Redis主从分离 准备三个redis配置文件(redis.conf),分别修改为redis6380.conf、redis6381.conf、redis6382.conf 一、配置Master 1、修改端口 redis 的默认端口是6379,这里我们把主服务器的端口设置为6380 2、修改pidfi ...
分类:
其他好文 时间:
2019-01-12 15:22:47
阅读次数:
185
yml配置 redis配置类 缓存服务接口和实现 ...
分类:
编程语言 时间:
2019-01-08 12:18:32
阅读次数:
154
# Example sentinel.conf # *** IMPORTANT *** # # By default Sentinel will not be reachable from interfaces different than # localhost, either use the ' ...
分类:
其他好文 时间:
2019-01-06 22:02:10
阅读次数:
434
# Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argumen ...
分类:
其他好文 时间:
2019-01-06 21:59:01
阅读次数:
361
设置密码: 编辑redis配置文件 ,(在 或`/etc/redis.conf`) 加入: 然后 systemctl restart redis redis cli 中使用密码: ...
分类:
其他好文 时间:
2019-01-06 21:12:05
阅读次数:
208
1、设置redis.conf中daemonize为yes,确保守护进程开启。 查找redis配置文件redis.conf 编辑redis配置文件 命令行模式下输入 /daemonize 查找 将配置文件中daemonize为yes 2、编写开机自启动脚本 EXEC=/usr/local/redis/ ...
分类:
系统相关 时间:
2019-01-05 13:40:18
阅读次数:
248
1.准备三个redis配置文件,通过端口的区分,启动三个redis数据库实例,然后配置主从复制. 2.启动三个数据库实例,检测redis主从同步方案 3.redis主从赋值,故障手动切换. 4.登录a6371.conf,通过命令,去掉自己的从库身份,等待连接. 5.登录a6372.conf,通过命令 ...
分类:
其他好文 时间:
2019-01-03 10:54:49
阅读次数:
207
2016-12-22 13:58:48 该系列文章链接NoSQL 数据库简介Redis的安装及及一些杂项基础知识Redis 的常用五大数据类型(key,string,hash,list,set,zset)Redis 配置文件介绍Redis 持久化之RDBRedis 持久化之AOFRedis 主从复制 ...
分类:
数据库 时间:
2019-01-01 14:54:20
阅读次数:
257