How to create the slaveof for creating more than one redis server instance on windows 7 machind

25 views
Skip to first unread message

Chaitanya Elluri

unread,
Feb 23, 2015, 8:25:02 AM2/23/15
to redi...@googlegroups.com
Hi All,

Unable to create the one more server which acts as slave for the master server. followed the below mentioned steps but still failed to create. Please let me know the ways to overcome this issue

1. copied the config file and renamed the file name to 'redis-s1.conf'
2. Newly copied file changed the port value to 6380
3. provided the masterip and master port to create the slave
4. tried to run the below command from the command prompt  but failed to run the below command

Thanks in advance

Regards:
Chaitanya.E

Andres Arias

unread,
Feb 23, 2015, 12:36:05 PM2/23/15
to redi...@googlegroups.com
cmd C:\Redis

redis-server redis.master.conf
127.0.0.1 6379
-------------------
REPLCATION

cmd C:\Redis\slave1
redis-server redis.slave1.conf
--First Set the port in the file
port # 6380
SLAVEOF 127.0.0.1 6379
------------------------
cmd C:\Redis\slave2
redis-server redis.slave2.conf
--First Set the port in the file
port # 6381
SLAVEOF 127.0.0.1 6379
------------------------
SENTINEL
redis-server sentinel/sentinel.conf --sentinel
Reply all
Reply to author
Forward
0 new messages