報錯
Exception in thread "pool-25-thread-20" org.redisson.client.RedisException: ERR unknown command 'EVAL'. channel: [id: 0x06fc3a14, L:/11.57.1.15:6694 - R:192.168.200.152/192.168.200.152:26378] command: (EVAL), params: [if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('h..., 2, lock, redisson_lock__channel:{lock}, 0, 30000, 920d0c4a-1c15-4616-bb41-3ed66a69233e:17177]
解決方式
網上大部分解決該問題的方法都是:排查1、排查2,但是經過驗證,小編還發現可能是 排查3 的情況!!!
排查1、檢查 redis 版本是否大于等于2.6.0
排查2、打開 redis.conf 配置檔案,檢查是否有rename-command EVAL ""這項配置?如果有,注釋掉# rename-command EVAL "",重新開機 redis 即可