redis从零开始教程,redis新手入门知识

首页 > 经验 > 作者:YD1662022-10-31 23:17:49

临时解决办法:

echo 511 > /proc/sys/net/core/somaxconn

永久解决办法

vi /etc/sysctl.conf

redis从零开始教程,redis新手入门知识(5)

在里面添加net.core.somaxconn= 1024 然后执行sysctl -p 就可以永久消除这个warning

redis从零开始教程,redis新手入门知识(6)

问题二:

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.

redis从零开始教程,redis新手入门知识(7)

可以参考问题一的解决

问题三:

WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue 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 the setting after a reboot. Redis must be restarted after THP is disabled

redis从零开始教程,redis新手入门知识(8)

上一页12345下一页

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.