Redis常见问题汇总

  日常使用中Redis中配到的问题汇总

 

1. RedisDesktopManager提示:Connection error: QRedisClient compiled without ssh support

  平常使用RedisDesktopManager进行可视化管理, 使用ssh代理发生错误

 解决: 

原来是2019.0版本不支持ssh连接,去官网下载需要收费才能使用ssh
于是找到了免费的0.9.3.817版本,这个版本支持ssh链接。
以下为获取0.9.3.817版本的下载地址(windows版本)
链接:https://pan.baidu.com/s/1V_u6gR10smCH-E6tBHRSDw)
提取码:okfa

 

2. redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.

  今天发现脚本跑的任务中断了, 查看日志发现端倪

  解决方案:

  

通过redis-cli连接到服务器后执行以下命令:
    config set stop-writes-on-bgsave-error no

修改redis.conf文件:vi打开redis-server配置的redis.conf文件,然后定位到stop-writes-on-bgsave-error字符串所在位置,接着把后面的yes设置为no即可。

问题有大概下面几种情况:
1,磁盘出现损坏(很少出现)
2,写持久化数据的磁盘满了
3,磁盘访问不到了(针对远程存储)
4,对磁盘的访问权限不足(应该是最多发生的)

 

3.

LOADING Redis is loading the dataset in memory 

这是启动redis之后, 数据会从磁盘加载到内存中, 所以一些例如同步操作无法正常进行

 

posted @ 2020-07-27 09:33  X-Wolf  阅读(383)  评论(0编辑  收藏  举报