Redis - 伺服器除錯段錯誤命令



Redis DEBUG SEGFAULT 執行會導致導致 Redis 崩潰的無效記憶體訪問。它用於在開發期間模擬錯誤。

返回值

字串響應。

語法

以下是 Redis DEBUG SEGFAULT 命令的基本語法。

redis 127.0.0.1:6379> DEBUG SEGFAULT

示例

redis 127.0.0.1:6379> DEBUG SEGFAULT  
Could not connect to Redis at 127.0.0.1:6379: Connection refused 
not connected> 
redis_server.htm
廣告