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