zoukankan      html  css  js  c++  java
  • Caused by: redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool

    Caused by: redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool
    	at redis.clients.util.Pool.getResource(Pool.java:51)
    	at redis.clients.jedis.ShardedJedisPool.getResource(ShardedJedisPool.java:36)
    	at com.xxl.sso.core.util.JedisUtil.getInstance(JedisUtil.java:105)
    	at com.xxl.sso.core.util.JedisUtil.init(JedisUtil.java:33)
    	at com.xxl.sso.server.config.XxlSsoConfig.afterPropertiesSet(XxlSsoConfig.java:25)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
    	... 16 common frames omitted
    

      出现以上错误的原因有如下:

    1、修改redis.conf文件

    #修改为守护模式
    daemonize no
    
    #修改为守护模式
    daemonize no
    

    2、关闭防火墙或者防火墙运行6379端口

    1.永久关闭防火墙
    systemctl disable firewalld
    2.查看防火墙状态
     systemctl status firewalld 
    

    3、重启还不生效则用一下命令重启

    ./redis-server --protected-mode no  

    对以上内容有疑问的欢迎留言探讨,转载请说明出处,本人博客地址:https://www.cnblogs.com/chenyuanbo/

  • 相关阅读:
    [转]经典SQL语句大全
    listview分页
    verticalalign属性和用法
    在后台.cs页面往前台插入html代码的方法
    前台js改变Session的值(用ajax)
    2012.10笔记
    添加收藏夹(兼容部分)
    使textbox无法手动修改,但可以代码修改
    题目审批表
    任务书
  • 原文地址:https://www.cnblogs.com/chenyuanbo/p/12687608.html
Copyright © 2011-2022 走看看