redis踩坑记录

1. 关于redis启动后的warnning: 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.

解决方案:按照warnning提示:以root身份执行命令: echo never > /sys/kernel/mm/transparent_hugepage/enabled 可以临时解决wainning问题,但是重启后会失效。同时也给出了永久解决方案:将/sys/kernel/mm/transparent_hugepage/enabled添加到/etc/rc.local(该文件需要自己创建)中即可解决

此处给出关于透明大页的文章:潇湘隐者——Transparent Huge Page

上一篇:href="javascript:;" href="javascript:void(0);" href="#"区别


下一篇:挨踢职场求生法则-----我在IT职场打滚超过15年了,从小小的程序员做到常务副总