ubuntu 13.04安装supervisor
来源:互联网 发布:手机通话记录软件大全 编辑:程序博客网 时间:2024/06/04 19:01
supervisor工具用来监控进程,如果出现异常退出就自动重启。
1.sudo apt-get install supervisor
2.修改/etc/supervisor/supervisord.conf
加上以下的项
[inet_http_server]
port=host_ip:9010
这里的host_ip替换成具体的机器内网ip
修改防火墙,开放9010端口
3.增加/etc/supervisor/confi.d/test.conf
[program:test]
directory = /home/hadoop/miniprog/python
command = python test_supervisor.py
user = hadoop
autostart = true
autorestart = true
redirect_stderr = True
4.启动supervisor
sudo /etc/init.d/supervisor start
这样就可以对test_supervisor.py进行监控了。
5.打开http://locahost:9010
就可以看到supervisor的监控页面了。
1.sudo apt-get install supervisor
2.修改/etc/supervisor/supervisord.conf
加上以下的项
[inet_http_server]
port=host_ip:9010
这里的host_ip替换成具体的机器内网ip
修改防火墙,开放9010端口
3.增加/etc/supervisor/confi.d/test.conf
[program:test]
directory = /home/hadoop/miniprog/python
command = python test_supervisor.py
user = hadoop
autostart = true
autorestart = true
redirect_stderr = True
4.启动supervisor
sudo /etc/init.d/supervisor start
这样就可以对test_supervisor.py进行监控了。
5.打开http://locahost:9010
就可以看到supervisor的监控页面了。
0 0
- ubuntu 13.04安装supervisor
- ubuntu 安装supervisor
- ubuntu安装和使用supervisor
- 安装supervisor
- 安装supervisor
- 安装Supervisor
- Supervisor 安装
- Ubuntu Linux 16.04下安装node.js及supervisor、express
- Supervisor-安装-使用
- nodejs安装supervisor
- Supervisor安装及配置
- 安装启动 Supervisor
- 安装supervisor调试nodejs
- supervisor安装整理
- supervisor安装与使用
- Centos安装supervisor
- nodejs安装supervisor
- supervisor安装配置
- 为什么很多年轻人总会感到迷茫
- MFC通过注册表 实现程序开机自动运行
- android 开发第六弹--View事件传递和碎片
- 使用Eclipse构建Maven的SpringMVC项目
- Java/Android 多少年月日时分秒前
- ubuntu 13.04安装supervisor
- PopMetal和PX2上运行upstream linux kernel代码
- Web.xml配置详解之listener
- 关于创建String对象过程的内存分配
- Ubuntu adb devices :???????????? no permissions 解决方法
- php后门的编写
- eclipse工程转maven工程出错的解决办法
- 黑马程序员学习(四) 代码块、this、static
- 产品经理被一群程序员围着撕逼的时候你该怎么办?