溫馨提示×

redis保存數據出錯怎么辦

小新
389
2021-01-29 11:27:24
欄目: 云計算

redis保存數據出錯處理方法:在/etc/sysctl.conf配置文件中,添加:“vm.overcommit_memory = 1”,保存配置,重啟redis即可。

redis保存數據出錯怎么辦

redis保存數據出錯的解決方法:

問題:Redis “MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk”

查看日志出現提示信息如:

“WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.”

解決方法:

在/etc/sysctl.conf配置文件中,添加:“vm.overcommit_memory = 1”,保存配置,重啟redis即可。


0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女