我正在尝试来自https://github.com/xetorthio/jedis/wiki/Getting-started的Jedis(Redis for Java)"基本用法示例", 但是我收到以下错误:
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
Run Code Online (Sandbox Code Playgroud)
我正在使用Jedis-2.4.2,commons-pool2-2.0在OSX 10.9.2上尝试这个