spring 连接服务器redis 突然连接不上,之前好好的。
打印内容:
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
但是用redis-cli客户端可以连接上,随便set 一个key 的时候提示:
(error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instanc
用redis-cli连接上后执行以下语句,就可以正常连接上了
config set stop-writes-on-bgsave-error no