系统环境Centos 7
python 版本2.7.5
用 easy_install supervisor即可
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
[[email protected] /]# /usr/bin/supervisorctl reload 重启让配置文件有效
Restarted supervisord
Supervisor 安装
Supervisor 安装

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2022-01-31
  • 2021-12-08
  • 2021-12-10
  • 2021-08-27
  • 2022-01-24
  • 2021-05-19
猜你喜欢
  • 2022-02-07
  • 2021-09-14
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案