redis-master 配置文件里面添加 自启动为yes , logfile的文件地址,loglevel的等级,bind为绑定的ip或者0.0.0.0
redis-slave 配置文件里面 添加 自启动为yes , logfile的文件地址,loglevel的等级,slaveof 主ip或者名称 6379
redis启动时加上redis.conf的路径
主从同步失败
主从连接down且日志文件里显示Error condition on socket for SYNC: Connection refused
修改redis.conf 里面的bind为绑定的ip或者0.0.0.0
redis启动警告问题
未启动redis-server时启动redis-cli会出现not connected问题
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
修改/etc/sysctl.conf 设置 net.core.somaxconn= 1024 然后执行sysctl -p `
overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm