我正在尝试使用Jedis(Redis for Java)的“基本用法示例”来自https://github.com/xetorthio/jedis/wiki/Getting-started,但是我遇到了以下错误:
Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:42)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
我正在尝试在OSX 10.9.2上使用Jedis-2.4.2和commons-pool2-2.0。