我要评分
获取效率
正确性
完整性
易理解

Starting the Redis Cluster

This section describes how to use the cluster creation function of the Redis CLI tool to start a Redis cluster.

  1. Run the following command on any node to create a cluster:
    redis-cli --cluster create --cluster-replicas 1 IP1:port1 IP2:port2 IP3:port3 IP4:port4 IP5:port5 IP6:port6

    The --cluster-replicas 1 option indicates that a slave node is created for each master node.

  2. Enter yes to confirm the cluster creation.

    If "Finished with success" is displayed, the cluster is successfully created.