redis.clients.jedis.exceptions.JedisDataException

redis.clients.jedis.exceptions.JedisDataException: 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.

Today, I found a problem when configuring nginx+tomcat++redis integration. When I successfully logged in to the cluster project I just configured in a browser, and then re-login to another account, I found that the page throws this exception, and then in the console Connect to the redis client: redis-cli, execute keys * and find that there is only one record, then set key1 123 to add a record, but find that it cannot be added. I checked the Internet and solved the problem, but I don’t have time to study the specific reasons for now. down.
Workaround: Execute the following command after connecting to the server via redis-cli:
config set stop-writes-on-bgsave-error no

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325341265&siteId=291194637