Supervisor 安装

来源:互联网 发布:js 数组 map方法 编辑:程序博客网 时间:2024/06/05 02:14
系统环境Centos 7
python 版本2.7.5
用 easy_install supervisor即可

配置文件:
运行 echo_supervisord_conf输出configure file模板
echo_supervisord_conf > /etc/supervisord.conf 将模板存放到supervisord.conf文件中
在配置文件中必须的配置program sections
The configuration file must contain one or more program sections in order for supervisord to know which programs it should start and control. 
在supervisord.conf中写入:
[program:foo]
command=/bin/cat
运行:
/usr/bin/supervisord -c /etc/supervisord.conf

开启Web Server可视化
配置supervisord.conf:
[inet_http_server]
port=ip:9009
username=user
password=123456
[root@icilZ /]# /usr/bin/supervisorctl reload重启让配置文件有效
Restarted supervisord