1. 安装
pip install supervisor
2.配置supervisord.conf
[program:#自定义名称] 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
3. 启动
supervisord -c supervisord.conf