gunicorn问题-文件不可执行

时间:2020-09-01 13:24:48

标签: python flask gunicorn

我正在尝试使用supervisorctl执行gunicorn。这是主管配置文件:

[program:gunicorn]
directory=/home/mlino/flights
command=/home/mlino/.local/bin/python3 main.py run_gunicorn -b unix:/tmp/gunicorn.sock
numprocs=3
user=mlino
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
process_name=%(program_name)s_%(process_num)s
stderr_logfile=/var/log/flights/gunicorn.err.log
stdout_logfile=/var/log/flights/gunicorn.out.log

我遇到以下错误:

(venv) mlino@server1:~/flights$ sudo supervisorctl start gunicorn
[sudo] password for mlino:
gunicorn: ERROR (file is not executable)
(venv) mlino@server1:~/flights$

我也尝试了其他配置,但有相同的错误消息:ERROR(文件不可执行)。任何帮助都会很棒。

干杯!

0 个答案:

没有答案