1. Create 2 directories on a Windows disk, for example: Masterredis (the master service is stored) Slaveredis (slave service is stored)
2. Configuration file (redis.conf) modification in Master service: Bind 127.0.0.1 (IP address of master)
3. configuration file modification in slave service: Port 6381 (service port to separate) bind 127.0.0.1 (IP address from server) slaveof 127.0.0.1 6379 (this is host and Port of master)
4. Start up the master and slave servers
5. In order to reduce the size of the AoF file at a time, Reids2.4 added the Bgrewriteaof function later, Redis will choose a self-perceived low load situation to execute bgrewriteaof, this rewrite aof file process is very impact performance,
Solution: Master Turn off the Save function, turn off the aof log function, in order to achieve the best performance, slave turn on save and turn on the AOF log function, and turn on the BGWRITEAOF function, do not provide services externally, so slave load is generally higher than the master load, But master performance achieves the best
Redis Master-slave replication