redis连接失败:Could not get a resource from the pool] with root cause

  • 1.Redis没有启动
  • 2.未在redis的redis.conf文件中配置自己的ip(如我ip为192.168.1.66 就配置 bind 192.168.1.66)
  • 3.未开放防火墙端口或关闭防火墙
    关闭防火墙(不推荐,建议还是添加端口):service firewalld stop
    添加端口:
# --permanent 为永久添加,不指定此参数重启后失效
firewall-cmd --zone=public --add-port=9092/tcp --permanent
  • 4.云服务器未配置安全组规则
  • 5.maven工程的pom坐标为指定或错误
  • 6.IP地址或端口错误
  • 7.密码错误
发布了74 篇原创文章 · 获赞 53 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/m0_37679452/article/details/103824804