redis clusters error: (error) MOVED 5798 127.0.0.1:7001

 

the reason

This is usually because there is no set pattern cluster startup redis-cli caused.

 

solution

When you start using the -c parameter to start the cluster mode command is as follows:

redis-cli -c -p 7000


test

127.0.0.1:7000> get name
-> Redirected to slot [5798] located at 127.0.0.1:7001



Guess you like

Origin www.cnblogs.com/yxj0728/p/11720774.html