Supervisor 是 Linux 操作系统下中的一个进程监控器,它可以在 queue:work 挂掉时自动重启之。在 Ubuntu 上安装 Supervisor,你可以使用如下命令: sudo apt-get install supervisor 1. {小提醒} 如果觉得配置 Supervisor 难于登天,可以考虑使用 Laravel Forge,它将自动为你的 Laravel ...
Running the Queue Worker The queue:work Command Queue Priorities Queue Workers and Deployment Job Expirations and Timeouts Supervisor Configuration Dealing With Failed Jobs Cleaning Up After Failed Jobs Retrying Failed Jobs Ignoring Missing Models Pruning Failed Jobs Storing Failed Jobs in DynamoDB Dis...
autostart=trueautorestart=trueuser=root#numprocs=8redirect_stderr=truestdout_logfile=/data/logs/supervisorlogs/queue.log 2, 启动服务 [root@blog supervisord.d]# systemctl status supervisord.service● supervisord.service - Process Monitoring and Control Daemon Loaded: loaded (/usr/lib/systemd/system/sup...
Supervisor 的配置文件通常位于 /etc/supervisor/conf.d 目录下。在该目录中,你可以创建任意数量的配置文件,用来控制 supervisor 将如何监控你的进程。例如,创建一个 laravel-worker.conf 文件使之启动和监控一个 queue:work 进程: [program:laravel-worker]proce...
Laravel's queue configuration options are stored in your application's config/queue.php configuration file. In this file, you will find connection configurations for each of the queue drivers that are included with the framework, including the database, Amazon SQS, Redis, and Beanstalkd drivers, ...
1、新建 /etc/supervisor/conf.d/laravel-work.conf 文件: [program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=/usr/local/php/bin/php /data/wwwroot/app.com/artisan queue:work redis --sleep=3 --tries=3
Laravel's queue configuration options are stored in your application's config/queue.php configuration file. In this file, you will find connection configurations for each of the queue drivers that are included with the framework, including the database, Amazon SQS, Redis, and Beanstalkd drivers, ...
配置文件1[program:laravel-worker]process_name=%(program_name)s_%(process_num)02dcommand=php /home/forge/app.com/artisan queue:work --sleep=3 --tries=3 --daemonautostart=trueautorestart=trueuser=for...
Laravel's queue configuration options are stored in your application's config/queue.php configuration file. In this file, you will find connection configurations for each of the queue drivers that are included with the framework, including the database, Amazon SQS, Redis, and Beanstalkd drivers, ...
Easily start and manage supervised Laravel Queue workers directly from Forge. No more manual Supervisor configuration.Learn more › Secure By Default All Forge servers require SSH key authentication and your firewall comes configured out of the box. Security updates are installed automatically.Learn ...