Solve the redis client on error: error: write econnaborted config rightwe
Problem Description:
Solution:
1. First, check whether the firewall of Linux is turned on
Turn off the firewall
[root@localhost]# systemctl stop firewalld.service
Open 6379 port
[root@localhost]# sudo firewall-cmd --zone=public --add-port=6379/tcp --permanent
success
[root@localhost]# sudo firewall-cmd --reload
success
2. Check whether the redis startup configuration is correct
Check whether redis is started
ps -ef | grep redis
For versions above redis 3.2, Internet access is not allowed by default, and needs to be modified redis.conf configuration file
Modify peetected-mode
Modify peotected-mode yes
to: protected-mode no.
#The protected-mode parameter is used to disable access to redis from outside the network, if enabled, only the localhost ip (127.0.0.1) will be able to access Redis
Close bind 127.0.0.1
Comment out bind 127.0.0.1, or modify bind 0.0.0.0, to allow access to all ip addresses
After modifying the configuration file, remember to restart redis,
./redis-server /usr/local/redis/redis.conf
Read More:
- [Solved] Redis Client On Error Error connect ECONNREFUSED 11.20.200.6379 Config right
- Springboot startup error: err config is disabled command (Redis Disables Config command)
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- Redis: DENIED Redis is running in protected mode [How to Solve]
- [Solved] Redis Error: org.springframework.data.redis.RedisConnectionFailureExceptionjava.net.SocketTimeoutException
- [Solved] Redis Error: Error condition on socket for SYNC: No route to host
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- Redis Stand-alone Builds a Master-slave Copy Error [How to Solve]
- [Solved] Jedis connect and operate Redis error: Failed to create socket和connect timed out
- Client Error: Could not get a resource from the pool [How to Solve]
- (error) READONLY You can‘t write against a read only replica.
- Failed to restart redis-server.service Unit not found [How to Solve]
- [Solved] Redis error: NOAUTH Authentication required.
- [Solved] Windows Redis Error: Could not create server TCP listening socket 127.0.0.1:6379: bind…
- [Solved] Project Startup Error: Redis health check failed:Unable to connect to localhost6379
- [Solved] Project Startup Error: Redis health check failed: Unable to connect to localhost6379
- Redis Startup Error: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] Windows redis startup error: Error code: [35256]…
- [Solved] Redis Error: Unexpected exception while processing command
- Defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configuration.