1.启动redis 出现警告…warning
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.这个警报已经给出了解决方法,解决延迟和内存的使用问题
2.大概意思,按照提示去做
3.然后我们执行上面给出的解决方案
4.这样就可以了。如果要永久的话,需要写入/etc/rc.local进入rc.local,写入进去就可以了
完美解决