Jedis 无法连接 redis 报错 redis JedisConnectionException: Could not get a resource from the pool,排查步骤:
1 、redis.conf 里的 bind项 注释掉
2、 redis.conf 里的 protected-mode 改为 no
3、 防火墙放行
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
开放端口:
firewall-cmd --zone=public --add-port=6379/tcp --permanent
然后就可以访问了