An error was encountered during deployment, as follows:
java.net.SocketTimeoutException: connect timed out at redis.clients.jedis.Connection.connect(Connection.java:) at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:) at redis.clients.jedis.Connection.sendCommand(Connection.java:) at redis.clients.jedis.Connection.sendCommand(Connection.java:) at redis.clients.jedis.BinaryClient.multi(BinaryClient.java:) at redis.clients.jedis.BinaryJedis.multi(BinaryJedis.java:) at cn.edu.aynu.redis.TestTx.main(TestTx.java:) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:) at java.net.Socket.connect(Socket.java:) at redis.clients.jedis.Connection.connect(Connection.java:) ... more
This is actually a redis connection error, not a database connection error, the database connection error is this: jdbc connection refused
There are many specific reasons, such as: wrong ip, port not open, ip cannot be pinged and not allowed to access, etc.
I am here because the server ip cannot be pinged, it can be solved by releasing it in the security group.
Similar Posts:
- How to Solve Jedis Error: java.lang.ClassCastException: java.lang.Long cannot be cast to [B
- [Solved] Redis Operation exception: java.lang.ClassCastException: java.lang.Long cannot be cast to [B
- com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
- GeoServer source code offline environment debugging startup error [How to Solve]
- Tomcat Command Error: Catalina.stop: connect reused solution
- Redis uses connection pool to solve the problem of error reporting
- [Soloved] Fastdfs Error: java.net.SocketTimeoutException: connect timed out
- [Solved] SpringBoot Access Redis Error: java.lang.NoSuchMethodError: redis.clients.jedis.JedisPoolConfig.setMinEvictableIdleTime
- An error is reported when zookeeper starts (the data directory permission is incorrect)
- [Solved] MySQL connecte error: communications link failure