随笔分类 -  redis

摘要:#!/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 阅读(187) 评论(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 阅读(1547) 评论(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 阅读(82) 评论(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 阅读(147) 评论(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 阅读(2881) 评论(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 阅读(1147) 评论(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 阅读(202) 评论(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 阅读(559) 评论(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 阅读(106) 评论(0) 推荐(0)
摘要:环境: Python:2.7.5 1.下载redis-faina 下载地址 https://github.com/facebookarchive/redis-faina 2.解压安装 # unzip redis-faina-master.zip 3.使用 [root@]# ./redis-faina 阅读全文
posted @ 2021-12-02 17:52 slnngk 阅读(159) 评论(0) 推荐(0)
摘要:1.安装npm 安装步骤请参考 https://www.cnblogs.com/hxlasky/p/16141313.html 2.安装waoffle [root@localhost tmp]# npm install -g waoffle/usr/local/bin/waoffle -> /usr 阅读全文
posted @ 2021-11-16 13:45 slnngk 阅读(276) 评论(0) 推荐(0)
摘要:环境:Os:Centos 7Python:3.6.5 IP:192.168.1.134 1.安装rdbtools [root@localhost ~]# pip3 install rdbtools Collecting rdbtools Downloading https://files.pytho 阅读全文
posted @ 2021-11-16 13:44 slnngk 阅读(792) 评论(0) 推荐(1)
摘要:redis版本:4.0 #!/bin/bash find_key="activity:xdm:v2:core:task:13" ##主节点1 找到后进行删除 cnt01=`/usr/local/services/redis/bin/redis-cli -h 192.168.1.100 -p 7001 阅读全文
posted @ 2021-08-12 15:15 slnngk 阅读(155) 评论(0) 推荐(0)
摘要:redis版本:4.0 1.查看前10条慢查询192.168.1.100:6379> slowlog get 20 1) 1) (integer) 466 2) (integer) 1627875243 3) (integer) 13006 ##执行时间 单位微妙 4) 1) "scan" 2) " 阅读全文
posted @ 2021-08-02 16:10 slnngk 阅读(610) 评论(0) 推荐(0)
摘要:(error) CROSSSLOT Keys in request don’t hash to the same slot 解决办法: /usr/local/services/redis/bin/redis-cli -h 192.168.1.1 -p 7001 -a ptest KEYS "test 阅读全文
posted @ 2021-07-26 18:20 slnngk 阅读(2815) 评论(0) 推荐(1)
摘要:环境: OS:Centos 7 redis版本:4.0.15 背景:原来是2个节点组成的3主3从的集群,现在想修改为3个节点组成的3组3从的集群原来的集群部署拓扑:192.168.56.111:7001192.168.56.111:7002192.168.56.111:7003 192.168.56 阅读全文
posted @ 2021-05-31 15:46 slnngk 阅读(1486) 评论(0) 推荐(0)
摘要:安装ruby1.下载编译安装[root@localhost soft]# wget http://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz[root@localhost soft]# tar zxvf ruby-2.4.1.tar.gz[r 阅读全文
posted @ 2021-05-06 10:36 slnngk 阅读(189) 评论(0) 推荐(0)
摘要:1.先执行一条官方 https://rvm.io/ 复制来的长命令(...C0E3空格7D2B...) [root@redis126 ~]# gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB 阅读全文
posted @ 2021-04-23 18:52 slnngk 阅读(332) 评论(0) 推荐(0)
摘要:1.查看多少key/usr/local/services/redis/bin/redis-cli -h 192.168.1.100 -p 6379 -a testtest KEYS "*STOCK*"|wc -l2.导出key到文件/usr/local/services/redis/bin/redi 阅读全文
posted @ 2020-11-19 11:50 slnngk 阅读(316) 评论(0) 推荐(0)
摘要:1.生成key 192.168.1.50:6379> set name1 hxlOK192.168.1.50:6379> set name2 hxl02OK192.168.1.50:6379> set name3 hxl03OK192.168.1.50:6379> get name1"hxl"192 阅读全文
posted @ 2020-11-19 11:48 slnngk 阅读(618) 评论(0) 推荐(0)