今天运行Redis时发生错误,错误信息如下:(error) 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. Ple...

今天运行Redis时发生错误,错误信息如下:
(error) 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被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。
原因:
强制关闭Redis快照导致不能持久化。
解决方案:
运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。
root@lzh:/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> del key1
(integer) 1
本文标题为:Redis(error) MISCONF Redis is configured to save RDB snapshots,


基础教程推荐
- Java程序员从笨鸟到菜鸟(五十三) 分布式之 Redis 2023-09-11
- Mariadb数据库主从复制同步配置过程实例 2023-07-25
- SQL Server如何设置用户只能访问特定数据库和访问特定表或视图 2023-07-29
- Python安装第三方库的方法(pip/conda、easy_install、setup.py) 2023-07-28
- oracle数据库排序后如何获取第一条数据 2023-07-24
- Python常见库matplotlib学习笔记之画图中各个模块的含义及修改方法 2023-07-27
- oracle19c卸载教程的超详细教程 2023-07-23
- redis乐观锁与悲观锁的实战 2023-07-13
- redis 数据库 2023-09-13
- Windows10系统中Oracle完全卸载正确步骤 2023-07-24