laravel在 环境中使用superviser

/ 0评 / 0

安装superviser

sudo apt-get install supervisor

编辑配置文件

sudo vim /etc/supervisor/conf.d/task.conf
[program:task]
process_name=%(program_name)s
command=/usr/local/php/bin/php /data/wwwroot/butread/artisan trans 
autostart=true
autorestart=true
user=www
redirect_stderr=true
stdout_logfile=/data/wwwroot/butread/storage/logs/trans.log
stopwaitsecs=600
sudo supervisorctl reread

sudo supervisorctl update

sudo supervisorctl start all