Error message
springboot integrated redis error reason:
you need to modify the bind in the redis.conf configuration file to your own IP address in Linux
redis.conf configuration file
start the service (123 is the password set by myself, set in redis.conf)
Finally, don’t forget to modify the redis configuration file
# Redis database index (default is 0)
spring.redis.database=0
# Redis server address
spring.redis.host=192.168.20.128
# Redis server connection port
spring.redis.port=6379
# Redis server connection password (default is empty)
spring.redis.password=123
# Maximum number of connections to the connection pool (use negative values to indicate no limit)
spring.redis.pool.max-active=8
# Maximum connection pool blocking wait time (use negative values to indicate no limit)
spring.redis.pool.max-wait=-1
# The maximum idle connections in the connection pool
spring.redis.pool.max-idle=8
# The minimum idle connections in the connection pool
spring.redis.pool.min-idle=0
# Connection timeout (milliseconds)
spring.redis.timeout=5000
Read More:
- Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: [How to Solve]
- [Solved] AmqpConnectException: java.net.ConnectException: Connection refused: connect
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused
- [Solved] “error_code“:500,“message“:“IO Error trying to forward REST request: java.net.ConnectException: Connection Refused
- [Solved] Error running query: MetaException(message:Got exception: java.net.ConnectException Call From XXXX
- [Solved] failed to req API:localhost:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- [Solved] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe
- [Solved] Redis Execute redis-cli shutdown Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- Caused by: java.net.SocketException: Software caused connection abort: socket write error
- [Solved] Mac starts redis error: there is no specified conf file
- Redis cannot double-click redis-server.exe to start normally
- [Solved] AndroidStudio Error: Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused…
- [SpringBoot] Maven Error: Connection refused to host: 127.0.0.1
- [Solved] Redis—-(error) MISCONF Redis is configured to save RDB snapshots
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] There are test failures. Please refer to D:\Java_study\springboot\springboot-sugon-3\target\surefire-reports for the individual test results.
- [Solved] XML file configuration database connection information logical symbol error