![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Redis
咕咕咕zhou
这个作者很懒,什么都没留下…
展开
-
redis 在生产环境下执行keys的危害
问题描述 最近碰到一前同事在群里聊天,说在因为错误使用keys导致生产事故,下面是他的自白(事件回顾): 问题分析 为什么测试,灰度环境使用keys没有导致任何问题,而到生产环境会导致服务挂了呢? 这个问题首先得从keys这个命令说起。 先看下官方对这个命令对说明: Available since 1.0.0. Time complexity: O(N) with N being the number of keys in the database, under the assumption th原创 2020-09-11 18:16:37 · 1692 阅读 · 0 评论 -
Failed opening the RDB file root (in server root dir /etc/cron.d) for saving: Permission denied
问题描述 最近在自己的server上的redis命令行碰到set key错误的问题,返回结果如下: set a 1 (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set...原创 2019-12-24 11:02:29 · 15277 阅读 · 7 评论 -
Redis协议规范
译文 Redis协议详细说明 (Redis Protocol specification) RESP可以序列化不同的数据类型,如整数(integers),字符串(strings),数组(arrays)。它还使用了一个特殊的类型来表示错误(errors)。请求以字符串数组的形式来表示要执行命令的参数从客户端发送到Redis服务器。Redis使用命令特有(command-specific)数据类型作为...原创 2019-12-25 08:19:22 · 260 阅读 · 0 评论