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
typecho2017-07-04 13:46:31
Method 1:
supervisorctl tail flask stdout
Method 2:
Directly view the relevant files starting with supervisor
under /tmp/
(default log path)
代言2017-07-04 13:46:31
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