centOS下 jedis连接redis失败 redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectExce
问题描述:在eclipse下写test,确认导入包无误后,通过Junit测试,连接redis失败代码如下@Testpublic void testJedis() throws Exception{//创建和redis的链接 Jedis jedis = new Jedis("192.168.181.132",6379);//存入jedis.set("key2"