随笔分类 - redis
摘要:一、场景 今年的实际业务中,出现了一次redis bigkeys导致的生产事故,导致业务1个小时收不到指令。 二、关于bigkeys查询方法 1、使用redis-cli加--bigkeys参数 $ redis-cli -h 192.168.3.74 -p 6379 --bigkeys $ redis
阅读全文
摘要:一、场景 命令行操作redis, 万一没有界面化软件可用 二、文档 https://redis.io/docs/latest/develop/tools/cli/ 三、安装 sudo apt-get update sudo apt-get install redis-tools 四、命令介绍 $ r
阅读全文
摘要:一、参数介绍 两个配置参数来开启和关闭慢查询日志: slowlog-log-slower-than: 这个参数指定了执行时间超过多少微秒的命令请求会被记录到慢查询日志中。设置为0会记录所有请求,设置为-1则会禁用慢查询日志。 slowlog-max-len: 这个参数指定了慢查询日志中最大可以保存的
阅读全文
摘要:一、Redis Insight 1、官网下载 https://redis.io/insight/#insight-form 2、安装 sudo dpkg -i RedisInsight-linux-amd64.deb 3、运行 二、 AnotherRedisDesktopManager 1、官网下载
阅读全文
摘要:1、官网 https://www.fit2cloud.com/metersphere/index.html 2、文档 https://metersphere.io/docs/ https://github.com/metersphere/metersphere 3、环境 windwos10 jdk
阅读全文
摘要:1、docker hub https://hub.docker.com/_/redis 2、创建redis 创建目录 mkidr $HOME/Tools/redis/confmkdir $HOME/Tools/redis/data docker run \ --restart=always \ --
阅读全文
摘要:1、直连模式 #!/usr/bin/env python # -*- coding:utf-8 -*- import redis r = redis.Redis(host='192.168.1.110', socket_connect_timeout=10, port=6379, db=0, pas
阅读全文
摘要:1、RedisDesktopManager 新版本收费了,所以用下老版本 github https://github.com/uglide/RedisDesktopManager win安装包 https://github.com/uglide/RedisDesktopManager/release
阅读全文
摘要:1、官网 https://redis.io/ 2、redis库 pypi https://github.com/redis/redis-py/ https://pypi.org/project/redis/ 3、安装 pip install redis 4、基于哨兵模式封装的增删改查 参考链接: h
阅读全文