随笔分类 -  redis

摘要:redis-shake日常维护 1.实践例子源端同步到目标端是集群模式的情况,源端单机的不支持分db使用,集群模式不支持select db的格式,会报如下错误 2025-04-17 14:49:46 ERR [writer_192.168.1.134_7001] receive reply fail 阅读全文
posted @ 2025-04-17 14:53 slnngk 阅读(57) 评论(0) 推荐(0)
摘要:/usr/local/services/redis/redis-trib.rb create --replicas 1 192.168.1.100:7001 192.168.1.100:7002 192.168.1.100:7003 192.168.1.100:8001 192.168.1.100: 阅读全文
posted @ 2025-04-17 09:27 slnngk 阅读(14) 评论(0) 推荐(0)
摘要:环境: os:Centos 7 redis:4.0.12 1. 查看ruby安装路径 [root@dev_test_redis ~]# which ruby /opt/ruby/bin/ruby [root@dev_test_redis ~]# 2.尝试检查redis集群 检查其中一个节点即可 [r 阅读全文
posted @ 2025-02-17 09:13 slnngk 阅读(25) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7redis:4.0.14 1.当前集群的状态 [root@dev_test_redis redis_6384]# /usr/local/services/redis/bin/redis-cli -c -h 192.168.1.84 -p 6379 -a hxl2018 W 阅读全文
posted @ 2025-02-14 10:08 slnngk 阅读(132) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7redis:4.0.14 1.当前集群的状态 [root@dev_test_redis redis_6384]# /usr/local/services/redis/bin/redis-cli -c -h 192.168.1.84 -p 6379 -a hxl2018 W 阅读全文
posted @ 2025-02-13 16:22 slnngk 阅读(20) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7redis:4.0.14 1.新建集群模拟写入数据 [root@dev_test_redis conf]# /usr/local/services/redis/bin/redis-cli -c -h 192.168.1.84 -p 6379 -a hxl2018 Warn 阅读全文
posted @ 2025-02-13 14:55 slnngk 阅读(48) 评论(0) 推荐(0)
摘要:环境OS:Centos 7db:4.0.14角色 机器ip主 192.168.1.84 6379从 192.168.1.84 6380主 192.168.1.84 6381从 192.168.1.84 6382主 192.168.1.84 6383从 192.168.1.84 6384 1.下载安装 阅读全文
posted @ 2025-02-12 14:22 slnngk 阅读(54) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7redis:7.4.0 1.准备redis配置文件 [root@localhost redisconf]# more redis.conf ##daemonize yes dir ./ port 6379 tcp-backlog 511 timeout 300 tcp-k 阅读全文
posted @ 2025-01-10 16:00 slnngk 阅读(411) 评论(0) 推荐(0)
摘要:脚本 [root@localhost scripts]# more get_latency_history.sh #!/bin/bash timeout 5 /usr/local/services/redis/bin/redis-cli -u redis://123@192.168.1.14:637 阅读全文
posted @ 2024-12-16 11:12 slnngk 阅读(39) 评论(0) 推荐(0)
摘要:环境: OS:Centos 7 RedisShake:v4.2.2 1.下载地址 https://github.com/tair-opensource/RedisShake/releases/download/v4.2.2/redis-shake-linux-amd64.tar.gz 2.解压安装 阅读全文
posted @ 2024-12-13 10:28 slnngk 阅读(117) 评论(0) 推荐(0)
摘要:环境: 3主3从部署的集群 973:M 21 Nov 19:19:30.083 * Ready to accept connections 973:M 21 Nov 19:19:30.204 * Slave 192.168.10.1:9002 asks for synchronization 973 阅读全文
posted @ 2024-11-22 08:59 slnngk 阅读(27) 评论(0) 推荐(0)
摘要:#!/bin/bash now_date=`date "+%Y%m%d%H%M%S"` total_commands_processed=`/usr/local/redis/bin/redis-cli -h 192.168.1.50 -a test123 -p 6379 info 2>/dev/nu 阅读全文
posted @ 2024-04-19 11:24 slnngk 阅读(167) 评论(0) 推荐(0)
摘要:环境:Os:Centos 7redis-shake:4.0.2 说明:redis源端和目的端都是单节点 1.项目地址https://github.com/tair-opensource/RedisShake/tags 2.下载介质我这里下载的版本是4.0.2,文件如下:redis-shake-lin 阅读全文
posted @ 2023-11-07 14:04 slnngk 阅读(1431) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7redis:4.0.14 ################################主库部署#######################1.解压介质并安装[root@localhost soft]# tar -xvf redis-4.0.14.tar.gz[roo 阅读全文
posted @ 2023-08-08 10:52 slnngk 阅读(71) 评论(0) 推荐(0)
摘要:环境: OS:Centos 7 PMM:版本1 注意:如下方法只适用于pmm版本1,pmm2好像不支持. 1.下载redis_exporterwget https://github.com/oliver006/redis_exporter/releases/download/v1.3.5/redis 阅读全文
posted @ 2023-06-26 15:36 slnngk 阅读(133) 评论(0) 推荐(0)
摘要:使用如下命令获取大key/usr/local/services/redis/bin/redis-cli -h 192.168.1.136 -a 123456 -p 7001 --bigkeys summary Sampled 5123146 keys in the keyspace!Total ke 阅读全文
posted @ 2022-08-30 13:37 slnngk 阅读(2823) 评论(0) 推荐(0)
摘要:[root@cdc-henan-cdhworker02 redis]# /usr/local/redis/bin/redis-cli -h 192.168.1.50 -a test123 -p 6379 Warning: Using a password with '-a' or '-u' opti 阅读全文
posted @ 2022-08-22 16:50 slnngk 阅读(1133) 评论(0) 推荐(1)
摘要:redis-cli -h 192.168.1.114 -a test123 --bigkeys hotkeys命令需要redis 4.0以上的版本才支持 /usr/local/redis/src/redis-cli -h 192.168.1.50 -a test123 --hotkeys 分析热ke 阅读全文
posted @ 2022-04-13 15:23 slnngk 阅读(193) 评论(0) 推荐(0)
摘要:环境:OS:Centos 7ip:192.168.1.135redis服务器:192.168.1.49 1.安装ruby下载地址https://www.ruby-lang.org/en/downloads/我这里下载的是2.7.5ruby-2.7.5.tar.gz 2.安装[root@localho 阅读全文
posted @ 2022-03-02 15:55 slnngk 阅读(544) 评论(0) 推荐(0)
摘要:安装部署redislive环境:OS:Centos 7Python:2.7.5 1.下载下载地址为:https://github.com/kumarnitin/下载文件文件为:RedisLive-master.zip 2.解压[root@localhost soft]# unzip RedisLiv 阅读全文
posted @ 2021-12-06 17:49 slnngk 阅读(89) 评论(0) 推荐(0)