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

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

如果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-操作57】在 MapGIS 6.7 输入编辑中进行矢量化输入线操作时,快捷键 F5、F6、F7、F8、F9、F11、 F12 分别实现的功能是:
  • The organization shall undertake root cause analysis and determine potential actions to prevent the occurrence or recurrence of()
  • The modern study of symmetric-key ciphers relates mainly to the study of block ciphers and stream ciphers and to their applications.
  • CentOS / Oracle x64 安装 .NET Core SDK
  • 工厂方法模式(Factory Method)
  • 浅析泵站设备安全运行管理
  • 使用Docker部署MaxKB本地知识库
  • 【201305-单选14】以下关于 GIS 空间分析说法不正确的是:
  • ToroDB和YugabyteDB的区别
  • 无法使用pip install tensorflow安装Tensorflow的解决方案

© CopyRight 2014~2024 薄学网.