#JedisConnectionException

JedisConnectionException: Failed connecting to host localhost:6379

  Exceptioninthread"main"redis.clients.jedis.exceptions.JedisConnectionException:Failedconnectingtohostlocalhost:6379atredis.clients.jedis.Connection....

Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out

问题:java连接不上redis。异常信息:Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect time...