zoukankan      html  css  js  c++  java
  • Redis启动报错WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

    1、报错内容

    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.

    2、解决

    sudo vim /etc/sysctl.conf
    
    net.ipv4.conf.default.accept_source_route = 1
    vm.overcommit_memory = 1
    net.core.somaxconn = 1024
    
    sudo sysctl -p
    
  • 相关阅读:
    5.9上午
    5.4下午
    5.4上午
    5.2上午
    4.19下午
    4.18上午
    4.17下午
    4.17上午
    4.12下午
    4.13下午
  • 原文地址:https://www.cnblogs.com/kikyoqiang/p/14615296.html
Copyright © 2011-2022 走看看