• 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/

  • 相关阅读:
    g++
    Adapter
    使用 JDBC 连接MySQL 、SQL Server数据库
    Chrom Firefox 非安全端口访问
    Cent OS & Windows 双系统自定义引导菜单
    Cent OS 7 安装海峰、极点五笔输入法
    数据结构:单链表
    切记要初始化指针
    Java 连接 MySQL 数据库
    C语言 Struct 结构体在 Java 中的体现
  • 原文地址:https://www.cnblogs.com/chenyuanbo/p/12687608.html
Copyright © 2020-2023  润新知