您的位置:首页 > 其它

supervisord 使用

2015-11-02 10:58 148 查看
1 下载后 # python setup.py install

2 # echo_supervisord_conf > /etc/supervisord.conf 生成了配置文件

或者从远程scp一份

3 在最下面加入需要守护的进程

[program:progname]

user=root

command=/usr/local/bin/python /home/xxx/xxx/xx.py

autostart=true

autorestart=true

stderr_logfile=/home/mid/xxx/log/xxx_err.log

stderr_logfile_maxbytes=1MB

stderr_logfile_backups=10

stderr_capture_maxbytes=1MB

stdout (same with stderr)...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: