mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化集群创建脚本
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
IP=$1
|
||||
echo "create redis cluster, host ip: ${IP}"
|
||||
|
||||
redis-cli -a 123456 --cluster create \
|
||||
192.168.199.233:6371 \
|
||||
192.168.199.233:6372 \
|
||||
192.168.199.233:6373 \
|
||||
192.168.199.233:6374 \
|
||||
192.168.199.233:6375 \
|
||||
192.168.199.233:6376 \
|
||||
"${IP}":6371 \
|
||||
"${IP}":6372 \
|
||||
"${IP}":6373 \
|
||||
"${IP}":6374 \
|
||||
"${IP}":6375 \
|
||||
"${IP}":6376 \
|
||||
--cluster-replicas 1
|
||||
|
||||
Reference in New Issue
Block a user