Problem Description:
Redis set, get and other operations have the following errors
(error) MOVED 8352 192.168.145.128:6380
Cause analysis:
This is generally caused by the fact that the cluster mode is not set when redis cli is started; After starting the cluster, redis cli logs in as an ordinary user and cannot operate the data in the cluster. You need to add – C to log in as a cluster mode before you can operate.
Solution:
Add – C at startup to start cluster mode
redis-cli -c -p 6379
As shown in the figure below, the operation can be successfully performed
Summary
Login in normal mode: you may directly enter the read host and move redirection will occur when storing data. Therefore, you should log in as a cluster. Add the – C parameter to connect with the cluster policy, and the setting data will be automatically switched to the corresponding write host
Read More:
- Redis cluster error: (error) moved solution
- (20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Centos7 offline installation of redis and PHP extension redis
- Error connecting to redis on localhost:6379 (Redis::TimeoutError)
- [Solved] Redis Error: org.springframework.data.redis.RedisConnectionFailureExceptionjava.net.SocketTimeoutException
- Redis: How to Configurate Redis.conf File
- Abnormal display of page object moved to here
- Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core
- How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core
- No such file or directory error when redis is started under Windows
- Redis cli create creates an error when creating a cluster
- ERR Slot 3300 is already busy (Redis::CommandError)
- JWT and token + redis scheme of spring security
- Redis cannot load windows.conf
- The local program cannot access the test environment redis cluster through public IP_ compromise
- Termux installing redis
- Stackexchange.redis data timeout [How to Solve]
- Solution to redis error in CentOS of idea connected virtual machine
- Solve the problem of testing redis cluster“ java.lang.NumberFormatException : For input string: “ [email protected]@17002 “And so on