1. 程式人生 > >redis.clients.jedis.exceptions.JedisDataException :READONLY You can't write

redis.clients.jedis.exceptions.JedisDataException :READONLY You can't write

錯誤 red can exception conf readonly 分布 span app

分布式直連同步調用測試時出現的錯誤:主從復制架構下,默認Slave是只讀的,如果寫入則會報錯:

redis.clients.jedis.exceptions.JedisDataException: READONLY You can‘t write

解決方案:

redis修改redis.windows.conf文件中的 appendonly no

redis.clients.jedis.exceptions.JedisDataException :READONLY You can't write