Docker 运行Redis报错: WARNING overcommit_memory is set to 0!解决方案

2023-07-31 15:02:07 码农 1405

如果docker run redis时,查看日志发现警告:

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.

需要在服务器上执行 sysctl vm.overcommit_memory=1 或者执行一下语句:

echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf \
&& sysctl -p
—— 完 ——
  • 【201305-单选27】GIS与机助制图的差异在于:
  • IIS错误:0x8007052e无法使用虚拟目录密码作为用户 Administrator 在本地登录到 F:\dist
  • 【201305-操作60】下列哪项内容可通过 MapGIS K9 属性汇总工具实现?
  • dell r720服务器开机只显示configuring memory的解决方案
  • 全国GIS应用水平考试简介
  • MIS和DSS之间的区别
  • 女,45岁。颈肩痛伴左上肢放射痛1周。查体:Eaton试验(
  • (2022-09事业单位联考A类)2、下列关于2022年中国经济上半年运行情况的说法,正确的是()。
  • Redis持久化机制
  • SQLServer 错误: 15404,无法获取有关 Windows NT 组/用户 ‘xxx\Administrator’ 的信息,错误代码 0x534。

© CopyRight 2014~2024 薄学网.