Laravel 连接Redis错误
项目偶然会发生(可能几天、一周)无法正确连接Redis导致服务不可用,Redis服务是正常开启的,发生后重启Redis又可正常使用,日志如下:
local.ERROR: read error on connection to 127.0.0.1:6379 {“exception”:”[object] (RedisException(code: 0): read error on connection to 127.0.0.1:6379 at /www/wwwroot/project/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:87)
请教大佬,这可能是什么原因导致的,要如何避免呢?
推荐文章: