python - Supervisor starts the program and reports an error, ERROR (spawn error), how to view the specific error information
三叔
三叔 2017-07-04 13:44:31
0
2
3805

1. Use gunicorn to access the website through the external network port normally
2. After configuring the supervisor, supervisord -c supervisor.conf is normal
3. Supervisorctl -c supervisor.conf starts flask and an error is reported

4.supervisorctl -c supervisor.conf start flask prompts success, but query status shows exit


三叔
三叔

reply all(2)
typecho

Method 1:

supervisorctl tail flask stdout

Method 2:

Directly view the relevant files starting with supervisor under /tmp/ (default log path)

代言

supervisord is just a daemon process to help you maintain the stability of your process

启动命令:supervisord -c 配置文件.conf

Configuration file.conf

[program:programName]
command=网站的启动命令
autostart=true
autorestart=true
stderr_logfile=/var/log/err.log
stdout_logfile=/var/log/out.log
stopsignal=INT
[supervisord]
pidfile=/var/run/supervisord.pid
logfile=/var/log/supervisord.log
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template