jedis 连接 redis:Could not get a resource from the pool——我的出错原因和解决办法
windows 下安装的,本机使用
现象:刚装好开发使用好好的, 重启电脑后就报这个错
网上的所有可能都试过,没有用。
最后,放弃所有包装,用最原始的代码进行连接测试:
Jedis jedis=new Jedis("127.0.0.1");
jedis.auth("7777");//password
jedis.set("firstKey", "hello redis!");
ERR Client sent AUTH, but no password is set
于是,重新设置密码:
redis 127.0.0.1:6379> CONFIG SET requirepass "123456"
OK
redis 127.0.0.1:6379> AUTH 123456
Ok
问题解决!!!
可是,我之前明明设置了密码的,为什么一重启密码就不起作用了呢?
于是,关掉服务器,再打开,重新跑了一下测试代码,玛尼???这个错误又出来啦!!!
参见:
http://blog.csdn.net/rchm8519/article/details/48347797
jedis 连接 redis:Could not get a resource from the pool——我的出错原因和解决办法的更多相关文章
- 通过jedis连接redis单机成功,使用redis客户端可以连接集群,但使用JedisCluster连接redis集群一直报Could not get a resource from the pool
		一,问题描述: (如题目)通过jedis连接redis单机成功,使用JedisCluster连接redis集群一直报Could not get a resource from the pool 但是使 ... 
- redis使用问题一:Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool] with root cause
		本文使用的是spring-data-redis 首先说下redis最简单得使用,除去配置. 需要在你要使用得缓存得地方,例如mybatis在mapper.xml中加入: <cache evict ... 
- 用Jedis连接Redis
		jedis中的方法名,和Redis的命令几乎一样 1.jar包,作为测试只需要一个jar 2.代码 package com; import java.util.HashMap; import java ... 
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
		超时 Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: jav ... 
- Java 使用Jedis连接Redis数据库(-)
		redis 安装: Linux 安装redis 1)下载jar包: 使用Jedis需要以下两个jar包: jedis-2.8.0.jar commons-pool2-2.4.2.jar 2)测试red ... 
- jedis 连接 redis
		一.连接单机版的 redis /** * 直接连接 redis * @throws Exception */ @Test public void test1() throws Exception { ... 
- jedis异常:Could not get a resource from the pool
		前几天公司后端系统出现了故障,导致app多个功能无法使用,查看日志,发现日志出现较多的redis.clients.jedis.exceptions.JedisConnectionException: ... 
- Java链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法
		Java链接Redis时出现 "ERR Client sent AUTH, but no password is set" 异常的原因及解决办法 [错误提示] redis.clie ... 
- pip install 提示代理连接失败原因及解决办法
		# pip install 提示代理连接失败原因及解决办法 1. 错误提示 在公司电脑上安装Python的虚拟环境时输入命令: pip install virtualenv 系统提示以下异常信息: R ... 
随机推荐
- ios优秀的第三方框架
			1.数据请求,object-c AFNetworking 网址:https://github.com/AFNetworking/AFNetworking swift Alamofire 网址:h ... 
- myeclipse优化 Maven
			1.禁用myeclipse updating indexes MyEclipse 总是不停的在 Update index,研究发现Update index...是Maven在下载更新,但很是影响mye ... 
- 移动前端开发和 Web 前端开发的区别是什么
			可以分成两部分理解1.服务器端开发,也叫后台开发,这是唯一的,对应不同的平台,他负责数据的分发与存储,和一些逻辑的处理.逻辑处理的多少由业务的复杂程度决定.服务端相对独立,与平台没啥关系. 2..1中 ... 
- btrace-dtrace-for-java-ish
			http://dtrace.org/blogs/ahl/2012/04/24/btrace-dtrace-for-java-ish/ 
- asp.net core读取appsettings.json,如何读取多环境开发配置
			摘要 在读取appsettings.json文件中配置的时候,觉得最简单的方式就是使用asp.net core注入的方式进行读取了. 步骤 首先根据配置项的结构定义一个配置类,比如叫AppSettin ... 
- ASP.NET MVC与Sql Server交互, 插入数据
			在"ASP.NET MVC与Sql Server建立连接"中,与Sql Server建立了连接.本篇实践向Sql Server中插入数据. 在数据库帮助类中增加插入数据的方法. p ... 
- Cesium中的地形和坐标转换说明
			1 Cesium中的地形 Cesium中的地形系统是一种由流式瓦片数据生成地形mesh的技术,厉害指出在于其可以自动模拟出地面.海洋的三维效果.创建地形图层的方式如下: var terrainProv ... 
- 字符串类型的变量,也要进行alloc内存分配之后才能用
			nss_upperName =[[NSStringalloc]initWithString:labTopTitle.text]; nss_upperName =labTopTitle.text; // ... 
- ormlite 在android中 排序 条件查询
			ormlite 在android中 排序 条件查询 all = dao.queryBuilder().orderBy("Id", true).where().eq("Ty ... 
- Snail—UI学习之得到某组件的方法
			第一种方法:依据传入函数的參数对象的tag属性区分 比方 多个button运行同一个方法,可是不同的方法运行时.里面的逻辑又不一样 那就得加以区分 这时能够用tag来差别 //再新建一个Button ... 
