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/

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM