系统环境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.
[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