关于redis启动时报错:Could not get a resource from the pool。
来源:互联网 发布:百度关键词排名软件 编辑:程序博客网 时间:2024/05/28 09:31
今天在启动redis后启动项目,又出现了这个问题:Could not get a resource from the pool。照着之前的思路,检验redis服务是否开启,端口号,密码是否和项目密码一样,私服是否开启(貌似无关),数据库配置文件是否出错,发现一切正常后,依然报这个错。
(关键的地方来了)在DOC下运行redis-cli.exe -h 127.0.0.1
-p 6379和redis-cli.exe -h 127.0.0.1 -p 6379 -a password
发现都能正常启动redis,并且能正产操作,这就让我很尴尬了。如果没猜错应该是密码设置不对。命令窗口也报了密码不对的错。最后才发现,我在启动redis的时候,没有加载配置文件(如果直接点击redis-server.exe,在启动成功后的窗口首行:Warning: no config file specified)。
又继续百度,怎么加载配置文件,发现可以直接从doc进入redis目录,并执行语句:redis-server.exe redis.windows.conf 即可,也可以自建脚本,内容为:redis-server.exe redis.windows.conf --loglevel verbose。结果这样之后发现脚本一闪而过,删掉--loglevel verbose之后,启动正常,项目启动也正常无错误。特此记录,以防遗忘
(关键的地方来了)在DOC下运行redis-cli.exe -h 127.0.0.1
-p 6379和redis-cli.exe -h 127.0.0.1 -p 6379 -a password
发现都能正常启动redis,并且能正产操作,这就让我很尴尬了。如果没猜错应该是密码设置不对。命令窗口也报了密码不对的错。最后才发现,我在启动redis的时候,没有加载配置文件(如果直接点击redis-server.exe,在启动成功后的窗口首行:Warning: no config file specified)。
又继续百度,怎么加载配置文件,发现可以直接从doc进入redis目录,并执行语句:redis-server.exe redis.windows.conf 即可,也可以自建脚本,内容为:redis-server.exe redis.windows.conf --loglevel verbose。结果这样之后发现脚本一闪而过,删掉--loglevel verbose之后,启动正常,项目启动也正常无错误。特此记录,以防遗忘
阅读全文
0 0
- 关于redis启动时报错:Could not get a resource from the pool。
- redis JedisConnectionException: Could not get a resource from the pool
- Redis:Could not get a resource from the pool
- redis报错JedisException: Could not get a resource from the pool
- redis---Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- Could not get a resource from the pool
- Could not get a resource from the pool 错误分析
- Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- 急求大婶指导redis Could not get a resource from the pool 异常
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- Redis一个异常的解决办法,异常描述:Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- 处理应用端连接redis报could not get a resource from the pool问题
- redis提示Could not get a resource from the pool(jedis连接池配置)
- HDU 1358 Peroid(KMP和循环节)
- 学习阶段总结(1)
- 通过java客户端给K8s节点机打标签
- 通过getIdentifier获取资源id
- JSONObject,JSONArray,Map,String之间转换
- 关于redis启动时报错:Could not get a resource from the pool。
- 英语666
- 隐马尔科夫模型 HMM 与 语音识别 speech recognition (1):名词解释
- 修改etc/sudoers,导致系统出现sudo错误
- 使用Kivy编写APP之——事件和属性
- spark算法
- 欢迎常来哦
- javaScript类型转换
- 机器学习:归纳偏好-“没有免费的午餐”定理