Redis起動警告問題の解決

1915 ワード

最初の警告

WARNING: The TCP backlog setting of 511 cannot be enforced because
/proc/sys/net/core/somaxconn is set to the lower value of 128.
   :TCP  backlog   ,511    ,   /proc/sys/net/core/somaxconn         128.
      :(            )
echo 511 > /proc/sys/net/core/somaxconn
      :(            )
    /etc/rc.local   。
baklog          3        accept queue   。
  linux  backlog  

2番目の警告

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

      :echo "vm.overcommit_memory=1" > /etc/sysctl.conf

      :    /etc/sysctl.conf   。

  :  linux redis overcommit_memory   

3番目の警告

you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix thisissue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain thesetting after a reboot. Redis must be restarted after THP is disabled.
   :         ,    redis         。   echo never > /sys/kernel/mm/transparent_hugepage/enabled      。
      :
echo never > /sys/kernel/mm/transparent_hugepage/enabled。
      :
    /etc/rc.local   。

4番目の警告

Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
   :  :   32   ,         。    3 GB maxmemory  。
    :
       redis.conf,  maxmemory     maxmemory 751619276