Redis Configuration Master-Slave
Primary IP: Port 192.168.0.103 6666
From IP: Port 192.168.0.108 3333
- Configure from Library
(1) Installation service: Redis-server--service-install--service-name redisService6666--port 6666
(2) Start process: Redis-server--service-start--service-name redisService6666
(3) connection Redis:redis-cli.exe-h 127.0.0.1-p 3333
(4) Set master-slave slaveof 192.168.0.1036666
(5) Info to see if the configuration was successful
As follows:
To configure successful results:
- The main library does not need to be configured, just install it and you can view
C # Redis Learning Series One: Redis awareness, download, installation, use installation
(1) connection redis:redis-cli.exe-h 127.0.0.1-p 6666
(2) Info view master and slave results
Configure successful results
- Verify
Main Library Settings set name Change_4_now
Get Get name from library
C # Redis Learning Series III: Redis Configuration Master-Slave