主管路径错误

时间:2019-02-18 10:06:59

标签: php laravel

我已经安装了主管并在etc/supervisor/conf.d中创建了配置文件

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php var/www/project queue:work database --sleep=3 --tries=3
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/home/root/project/worker.log

但是当我使用以下命令启动进程时:

sudo supervisorctl reread

sudo supervisorctl update

sudo supervisorctl start laravel-worker:*

我在log worker.log文件中出现以下错误

Could not open input file: var/www/project

我想念什么?

我的目录结构是这样的:

etc
---supervisor
------conf.d
---------laravel-worker.conf

home
---root
------project
---------worker.log

var
---www
------project
---------(laravel files)

0 个答案:

没有答案