org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to host 192.168.1.86:6379
起服务报这个,回去看了眼nacos
host改回127.0.0.1就ok
如果要用域名,就需要开放连接,在redis配置文件中去改,本地的话,找到conf文件
将上面bind 127.0.0.1注释掉,然后protected-mode 改为no
重启redis,重启服务,启动成功~~~