環境介紹:CentOS7+redis4.0,master:6379 slave:6380
編輯slave的redis.conf文件,redis默認斷開就是6379,所以master不用修改
修改 bind 0.0.0.0
修改端口 port 6380
修改pid文件位置 pidfile /var/run/redis_6380.pid
取消slave註釋 slaveof 127.0.0.1 6379 //此處爲master的ip和端口
修改 bind 0.0.0.0
修改端口 port 6380
修改pid文件位置 pidfile /var/run/redis_6380.pid
取消slave註釋 slaveof 127.0.0.1 6379 //此處爲master的ip和端口