Redis 常见问题处理

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error

处理方法 :
运行:

redis-cli config set stop-writes-on-bgsave-error no

jedis报错

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out

处理方法:
构造函数是可以设置超时时间的,函数原型如下:

public Jedis(final String host, final int port, final int timeout) 

你可能感兴趣的:(Redis 常见问题处理)