Redis Debug Segfault 命令執(zhí)行一個(gè)非法的內(nèi)存訪問(wèn)從而讓 Redis 崩潰,僅在開(kāi)發(fā)時(shí)用于 BUG 調(diào)試。
redis Debug Segfault 命令基本語(yǔ)法如下:
redis 127.0.0.1:6379> DEBUG SEGFAULT
>= 1.0.0
無(wú)
redis 127.0.0.1:6379> DEBUG SEGFAULT Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected>