Redis windows cluster create

1: Download the corresponding redis-window.zip file

2: After decompression and modify the configuration file redis.config

         port 7001
         appendonly yes
         appendfilename "appendonly.7001.aof" 
         cluster-enabled yes 
         cluster-config-file nodes-7001.conf 
         cluster-node-timeout 15000 
         cluster-slave-validity-factor 10 
         cluster-migration-barrier 1  
         cluster-require-full-coverage yes

Note the use of two other configuration items (PS: if syslog-enabled is selected as yes, the log file path must be there, otherwise an error will be reported at startup)

logfile "Logs/redis_log.txt"
syslog-enabled yes

 

3: Start the redis startup script (window mode) redis-server.exe redis.*.conf

      Or service mode redis-server.exe --service-install redis.7000.conf --service-name redis7000 

                              redis-server.exe --service-start  --service-name redis7000 

 

4: Install the ruby ​​execution environment (ps: redis clusters need to execute ruby ​​scripts)

 

5: Execute the create cluster script

        redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326238486&siteId=291194637
Recommended