1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| mkdir -p /data/redis_63{79..81}/{conf,data} vim /data/redis_6379/conf/redis.conf bind 0.0.0.0 port 6379 daemonize no pidfile "/var/run/redis_6379.pid" logfile "" dir "./" masterauth redis_1.35 requirepass redis_1.35 appendonly yes cluster-enabled yes cluster-config-file nodes_6379.conf cluster-node-timeout 15000 sed 's/6379/6380/g' /data/redis_6379/conf/redis.conf > /data/redis_6380/conf/redis.conf sed 's/6379/6381/g' /data/redis_6379/conf/redis.conf > /data/redis_6381/conf/redis.conf
|