1
对于cron作业,我在laravel 5.1中使用以下代码并每隔1分钟运行一次该命令。但即使从crontab停止cronjob,仍然执行laravel代码。 ?如何杀死laravel队列:listen --queue = notification?
$this->call('queue:listen', [
'--queue' => 'notification-emails','--timeout'=>'30'
]);
可能是什么问题?我怎样才能阻止这个队列倾听?
谢谢。但是,我怎样才能杀死已经运行的队列:listen --queue = notification-emails manually? –
@KabindraSimkhada你必须手动完成。先输入'ps aux | grep artisan'在你的系统控制台中,然后查找匹配的进程ID并键入'kill -9 ID'。该ID将出现在“ps aux”输出的第二列中。 –