摘要:
一、maven依赖 <!-- redisson --> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.19.3</version> </dependency> 二、C 阅读全文
posted @ 2024-11-14 17:19
vello
阅读(511)
评论(0)
推荐(0)
摘要:
一、maven依赖 com.alibaba druid-spring-boot-starter <!-- Mysql驱动包 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> 阅读全文
posted @ 2024-11-14 17:13
vello
阅读(710)
评论(0)
推荐(0)
摘要:
一、maven依赖 org.springframework.boot spring-boot-starter-data-redis io.lettuce lettuce-core 二、nacos配置 spring: redis: sentinel: master: mymaster nodes: s 阅读全文
posted @ 2024-11-14 17:00
vello
阅读(1471)
评论(0)
推荐(0)
摘要:
一、下载redis镜像 二、redis主库配置 redis.conf 绑定的IP地址和端口 bind 0.0.0.0 必须使用6379,因为容器内默认是6379端口 port 6379 设置密码 requirepass 123456 启用持久化 appendonly yes 三、主库sentinel 阅读全文
posted @ 2024-11-14 16:52
vello
阅读(609)
评论(0)
推荐(0)
摘要:
如果某个主库执行了很多sql操作,导致mysql-bin的位置很大,如下图 从库设置同步的主库时,千万不能设置在这个binlog位置,否则后续的很多主库操作,在从库都会失败,报这种坐标位置等等的错误 Coordinator stopped because there were error(s) in 阅读全文
posted @ 2024-11-14 10:58
vello
阅读(30)
评论(0)
推荐(0)

浙公网安备 33010602011771号