linux redis起動時エラーWARNING overcommit_memory is set to 0! Background save may fail under low memory con
エラー: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」を追加し、コマンド「sysctl vm.overcommit_memory=1」を再起動または実行して有効にします.
解決策は、
vi /etc/sysctl.conf
が追加され、vm.overcommit_memory=1
が追加され、Esc+:wqを押してコマンド「sysctl vm.overcommit_memory=1
」を再起動または実行して有効にすることを終了することです.