首先Redis的安装前,先执行下面的命令:
# echo "vm.overcommit_memory=1" >>/etc/sysctl.conf
# echo "vm.swappiness=1" >>/etc/sysctl.conf
redis 安装是否成功,测试方法:
# /opt/redis/bin/redis-cli ping
PONG # 正常安装显示结果。
redis 日志报错:
问题1:
# WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
解决办法:
# echo 511 > /proc/sys/net/core/somaxconn
问题2:
WARNING you have Trans