Redis 报错:MISCONF Redis is configured to save RDB snapshots
2024-08-31 04:58:30
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.
配置优化,添加以下配置项到/etc/sysctl.conf
配置文件:
vm.overcommit_memory = 1
执行以下命令使其实时生效:
sysctl vm.overcommit_memory=1
如果Redis缓存的为非重要数据,如网页缓存,对可用性要求不高,可以修改Redis的配置文件如下:
stop-writes-on-bgsave-error no
如果缓存数据丢失也可以接受,可以关闭appendonly
:
appendonly no
Stackoverflow:https://stackoverflow.com/questions/19581059/misconf-redis-is-configured-to-save-rdb-snapshots
Redis Persistence:https://redis.io/topics/persistence
最新文章
- ios网络知识
- Microsoft.Practices.Unity入门
- Node.js使用Mongoose包操作MongoDB数据库
- jQuery知识点总结(第三天)
- 剑指Offer:面试题19——二叉树的镜像(java实现)
- [CareerCup] 13.6 Virtual Destructor 虚析构函数
- C# JS URL 中文传参出现乱码的解决方法
- 四种方式写按钮点击事件和Android 中常用的布局
- 关于android:configChanges的属性
- php异步调用方法实现示例
- HDU 4247 A Famous ICPC Team
- 初识hadoop-历史及其家族(日志一)
- Centos7下部署ceph 12.2.1 (luminous)集群及RBD使用
- 网卡的 Ring Buffer 详解
- 19南昌网络赛L
- 2.6 if嵌套
- 常用工具&;网址
- js数字格式化为千分位
- dbcp2连接池获取数据库连接Connection
- checkStype和findBugs校验
热门文章
- kafka内置的zookeeper
- Rails 异常处理 &;amp;&;amp; 性能
- Android中验证输入是否为汉字及手机号,邮箱验证,IP地址可用port号验证
- 【SQLSERVER】MD5注意事项
- _DataStructure_C_Impl:链串
- ssh无法连接到远端Ubuntu的解决方法
- 消息推送之百度云推送Android集成与用法
- 【POJ 1703】 Find them,Catch them
- [ligerUI] grid封装调用方法
- Arduino-IIC-Wire.h