Rate This Document
Findability
Accuracy
Completeness
Readability

Connecting to the Redis Cluster

After confirming that the Redis cluster has been correctly configured and is running, connect to the cluster.

Connect to a specified node in the Redis cluster, for example, the node whose IP address is 127.0.0.1 and port number is 6380. The -c parameter must be added to enable the Redis cluster mode. Otherwise, instances cannot be automatically switched to each other.

redis-cli -h 127.0.0.1 -p 6380 -c