
消息队列
写if不写else
找个天蝎座女生....
展开
-
ThinkPHP定时任务
有第三方库支持EasyTask:https://www.kancloud.cn/a392223903/easytask/原创 2021-08-13 11:22:12 · 130 阅读 · 0 评论 -
laravel消息队列failed_jobs格式取值
执行失败的消息队列会被添加到failed_jobs,格式比较复杂,这个是底层在添加数据库之前序列化封装了。vendor/illuminate/queue/Queue.php:85json_encode([ 'job' => 'Illuminate\Queue\CallQueuedHandler@call', 'data' => ['command' => serialize(clone $job)],原创 2021-05-11 15:07:46 · 1014 阅读 · 0 评论 -
laravel配置消息队列需要的配置文件
database.php'redis' => [ 'client' => 'predis', 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 63791),原创 2021-05-07 10:30:48 · 175 阅读 · 0 评论 -
Predis\Response\ServerException: ERR ‘EVAL‘ command keys must in same slot
[2021-04-30 06:04:16] local.ERROR: Predis\Response\ServerException: ERR 'EVAL' command keys must in same slot in /www/wwwroot/demo/vendor/predis/predis/src/Client.php:370Stack trace:#0 /www/wwwroot/demo/vendor/predis/predis/src/Client.php(335): Predis\Cl原创 2021-04-30 14:59:55 · 885 阅读 · 1 评论 -
laravel消息队列handle没有自动执行原因
每次修改队列代码需要执行更新指令php artisan queue:restart然后重新开启php artisan queue:work原创 2021-04-30 09:53:35 · 1748 阅读 · 0 评论 -
redis在linux环境下重启
首先修改完redis.conf之后需要重启才能生效。在重启之前需要做一个操作,在redis目录下执行这条指令,使指令全局覆盖cp src/redis-cli /usr/local/bin/否者或出现再来,在redis/src目录下重启指令(记得加上配置文件)./redis-server ../redis.conf ...原创 2021-04-29 14:39:01 · 2100 阅读 · 0 评论 -
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:88Stack trace:#0 /www/wwwroot/demo/vendor/predis/predis/src/Client.php原创 2021-04-29 14:29:33 · 775 阅读 · 0 评论