進(jìn)程里有用到Redis,但是發(fā)現(xiàn)經(jīng)常會(huì)出現(xiàn)Redis連接錯(cuò)誤,進(jìn)程運(yùn)行過程中發(fā)生的。報(bào)下面的錯(cuò)誤。
RedisException: read error on connection to 127.0.0.1:6379
這個(gè)問題困擾很久了,有沒有好的辦法,實(shí)在進(jìn)程onWorkerStart事件里啟動(dòng)的Redis連接。
沒有用到Workerman的Redis插件,文檔里提示插件主要是解決Redis隊(duì)列的,簡(jiǎn)單應(yīng)用建議不用使用。
RedisException: read error on connection to 127.0.0.1:6379