Redis Insight 调试信息
Redis Insight 调试信息
如果您在使用 Redis Insight 时遇到错误或其他问题,请按照以下步骤了解更多关于错误的信息并找出根本原因。
连接问题
如果您遇到连接问题,请尝试以下步骤。
1. 在调试模式下启动 Redis Insight
运行以下命令以在调试模式下启动 Redis Insight,从而调查连接问题
-
Windows:
cmd /C “set DEBUG=ioredis* && ".\Redis Insight.exe"”
-
macOS(从 Applications 文件夹)
DEBUG=ioredis* open "Redis Insight.app"
-
Linux:
DEBUG=ioredis* "redis insight"
2. 调查日志
您可以查看 Redis Insight 日志文件(扩展名为 .log
的文件),以获取有关系统问题的详细信息。以下是支持平台上的位置
- Docker: 在容器内的
/data/logs
目录中。 - macOS: 在
/Users/<your-username>/.redis-insight
目录中。 - Windows: 在
C:\Users\<your-username>\.redis-insight
目录中。 - Linux: 在
/home/<your-username>/.redis-insight
目录中。
其他问题
调试连接问题以外的其他问题
-
Windows:
cmd /C “set DEBUG=* && ".\Redis Insight.exe"”
-
macOS(从 Applications 文件夹)
DEBUG=* open "Redis Insight.app"
-
Linux:
DEBUG=* "redis insight"
获取详细的 Redis Insight 日志
-
Windows:
cmd /C “set STDOUT_LOGGER=true && set LOG_LEVEL=debug && set LOGGER_OMIT_DATA=false && ".\Redis Insight.exe"”
-
macOS(从 Applications 文件夹)
LOG_LEVEL=debug LOGGER_OMIT_DATA=false open "Redis Insight.app"
-
Linux:
LOG_LEVEL=debug LOGGER_OMIT_DATA=false "redis insight"
注意:如果您使用 LOGGER_OMIT_DATA=false,日志可能包含敏感数据。
记录所有信息
-
Windows:
cmd /C “set STDOUT_LOGGER=true && set LOG_LEVEL=debug && set LOGGER_OMIT_DATA=false && set DEBUG=* && ".\Redis Insight.exe"”
-
macOS(从 Applications 文件夹)
LOG_LEVEL=debug LOGGER_OMIT_DATA=false DEBUG=* open "Redis Insight.app"
-
Linux:
LOG_LEVEL=debug LOGGER_OMIT_DATA=false DEBUG=* "redis insight"
注意:如果您使用 LOGGER_OMIT_DATA=false 或 DEBUG=*,日志可能包含敏感数据。