Redis Debug Segfault 命令执行一个非法的内存访问从而让 Redis 崩溃,仅在开发时用于 BUG 调试。
redis Debug Segfault 命令基本语法如下:
- redis 127.0.0.1:6379> DEBUG SEGFAULT
>= 1.0.0
无
- redis 127.0.0.1:6379> DEBUG SEGFAULT
- Could not connect to Redis at 127.0.0.1:6379: Connection refused
- not connected>