Problem Description
When using Redisson for distributed locks and connecting to redis, the following error is prompted:
identify the problem
By command:
cluster nodes
view, discover
The reason for this prompt is that the cluster has been disabled for this Redis instance (disabled by default).
solve
Modify the value of the cluster-enabled parameter in the configuration file redis.conf to yes and remove the # in front of the parameter, and restart the Redis server.
Note: It cannot be solved by running the command config set cluster-enable yes, because there is no cluster-enable configuration item in the config command.
After restarting the service, execute: cluster nodes