redis目录
- 在/etc/sysctl.conf里面加上配置vm.overcommit_memory=1,并且执行
sysctl vm.overcommit_memory=1
- 执行命令,并且将命令保存到/etc/rc.local上面(centos 6.5)
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' >> /etc/rc.local