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)...
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)...
相关文章推荐
- maven中的junit测试
- 3.Swift的Guard语句
- 再次写给我们这些浮躁的程序员
- iOS 关于银联支付问题
- Update: Android.mk 中的 LOCAL_SRC_FILES, LOCAL_C_INCLUDES
- @RequestMapping 用法详解之地址映射(转)
- K-Means算法的代码实现(Java)
- 第七章:datapump模式的搭建
- IntelliJ Idea 常用快捷键列表
- XCTool安装、使用
- NOIP复习-006——最小生成树
- 手机端网页开发
- 英文版Windows 10中MATLAB中文字符乱码的问题
- iOS Unicode 字符 处理
- 学Android---布局(二)RalativeLayout
- JS级联下拉列表
- 导致少白头的三个真凶
- Tapestry 权威讲解-备份
- 地图纠偏算法
- win10与archlinux(UEFI+GPT)双系统