1.启动脚本
for((i=0;i<=2;i++)); do /opt/redis-4.0.0/src/redis-server /opt/redis-4.0.0/redis-cluster/700$i/redis.conf; done
for((i=3;i<=5;i++)); do /opt/redis-4.0.0/src/redis-server /opt/redis-4.0.0/redis-cluster/700$i/redis.conf; done
2.配置文件
cd redis-cluster/redis00/
修改redis.conf
redis_7003-----以此类推
port 7003
bind 172.16.16.19
daemonize yes
cluster-enabled yes
pidfile /var/run/redis_7003.pid
cluster-config-file nodes_7003.conf
cluster-node-timeout 15000
appendonly yes
3.redis_cluster离线下载地址如下:
https://pan.baidu.com/s/1WPg5OTuJstogFEncnpAVjA,密码:u81i