mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化集群创建脚本
This commit is contained in:
11
docker/3rd/redis/redis_cluster/conf/update_config.sh
Executable file
11
docker/3rd/redis/redis_cluster/conf/update_config.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
IP=$1
|
||||
echo "update redis config, host ip: ${IP}"
|
||||
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis1/redis.conf
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis2/redis.conf
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis3/redis.conf
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis4/redis.conf
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis5/redis.conf
|
||||
sed -i s/192.168.199.233/"${IP}"/ ./redis6/redis.conf
|
||||
Reference in New Issue
Block a user