首页 > 系统服务 > 详细

Ubuntu16.04安装Supervisor

时间:2019-09-08 01:07:14      阅读:123      评论:0      收藏:0      [点我收藏+]

安装

sudo apt-get install supervisor 

启动,否则会报 unix:///tmp/supervisor.sock no such file

service supervisor start
supervisord -c /etc/supervisord.conf

查看状态

supervisorctl status #查看supervisorctl状态
supervisorctl start openfalcon #启动子进程
supervisorctl stop openfalcon  #关闭子进程
supervisorctl restart openfalcon #重启子进程

比如

lintong@master:~$ supervisorctl status
openfalcon                       RUNNING   pid 10759, uptime 0:18:46

配置文件在 /etc/supervisor 目录下

lintong@master:/etc/supervisor$ ls
conf.d  start_openfalcon.conf  supervisord.conf

内容

[program:openfalcon]
command = cd ~/software/open-falcon-v0.2.1 & open-falcon start
user = lintong
autostart = true
autoresart = true
stderr_logfile = /var/log/supervisor/openfalcon.stderr.log
stdout_logfile = /var/log/supervisor/openfalcon.stdout.log

重新加载配置

supervisorctl reload

更新配置

supervisorctl update

web界面,账号密码参考 /etc/supervisord.conf

localhost:9001

技术分享图片

 

Ubuntu16.04安装Supervisor

原文:https://www.cnblogs.com/tonglin0325/p/11483918.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!