在云那方

首页 新随笔 联系 订阅 管理

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

  

posted on 2016-02-22 15:32  Rich.T  阅读(203)  评论(0编辑  收藏  举报