echo redis-7001 redis-7002 redis-7003 | xargs -t -n 1 cp redis-6.2.6/redis.conf
sed -i -e 's/6379/7001/g' -e 's/dir .\//dir \/redis-cluster\/redis-7001\//g' redis-7001/redis.conf
sed -i -e 's/6379/7002/g' -e 's/dir .\//dir \/redis-cluster\/redis-7002\//g' redis-7002/redis.conf
sed -i -e 's/6379/7003/g' -e 's/dir .\//dir \/redis-cluster\/redis-7003\//g' redis-7003/redis.conf
redis启动