Predis\ClientException: Command ‘THROTTLE‘ is not a registered Redis command

[2021-04-29 02:58:12] local.ERROR: Predis\ClientException: Command 'THROTTLE' is not a registered Redis command. in /www/wwwroot/demo/vendor/predis/predis/src/Profile/RedisProfile.php:88
Stack trace:
#0 /www/wwwroot/demo/vendor/predis/predis/src/Client.php(323): Predis\Profile\RedisProfile->createCommand('THROTTLE', Array)
#1 /www/wwwroot/demo/vendor/predis/predis/src/Client.php(314): Predis\Client->createCommand('throttle', Array)
#2 /www/wwwroot/demo/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(72): Predis\Client->__call('throttle', Array)
#3 /www/wwwroot/demo/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(84): Illuminate\Redis\Connections\Connection->command('throttle', Array)
#4 /www/wwwroot/demo/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(130): Illuminate\Redis\Connections\Connection->__call('throttle', Array)
#5 /www/wwwroot/demo/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Illuminate\Redis\RedisManager->__call('throttle', Array)
#6 /www/wwwroot/demo/app/Jobs/trade.php(37): Illuminate\Support\Facades\Facade::__callStatic('throttle', Array)

利用redis缓存来实现消息队列,突然发现没有throttle,是因为redis版本的问题,我宝塔的redis版本是6.2,我自己在linux环境下面手动下载了5.0.*版本的redis.
在这里插入图片描述
在这里插入图片描述
重新安装redis需要修改一下redis.conf中的配置。bind,requirepass
下面是重新安装之后能够执行漏斗分流函数。
在这里插入图片描述
在这里插入图片描述
有问题可以下面留言,一起探讨。

猜你喜欢

转载自blog.csdn.net/weixin_41429587/article/details/116268246