Supervisor 2019(2)Ubuntu and Multiple Services
Install on ubuntu system
> sudo apt-get install supervisor
Check the version
> supervisord --version
3.3.1
Check the configuration after installation
> sudo vi /etc/supervisor/supervisord.conf
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
[include]
files = /etc/supervisor/conf.d/*.conf
My configuration sub directory is empty though
/etc/supervisor/conf.d
Manage the service
> sudo service supervisor start
> sudo service supervisor status
Set the Web UI
> sudo vi /etc/supervisor/supervisord.conf
[inet_http_server]
port=*:9001
username=sillycat
password=123456
Restart the service
> sudo service supervisor restart
Configure the program - Zeppelin
> cd /etc/supervisor/conf.d/
> sudo vi zeppelin.conf
[program:zeppelin]
user=root
command=/opt/zeppelin/bin/zeppelin.sh
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/zeppelin.out.log
stderr_logfile=/var/log/supervisor/zeppelin.err.log
Configure the program - Nginx
> sudo vi nginx.conf
[program:nginx]
user=root
command=/opt/nginx/sbin/nginx
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/nginx.out.log
stderr_logfile=/var/log/supervisor/nginx.err.log
The program need to be running on the front end.
References:
https://blog.programster.org/install-supervisor
https://www.vultr.com/docs/installing-and-configuring-supervisor-on-ubuntu-16-04
https://windmt.com/2016/02/02/manage-multiple-supervisors/
分享到:
相关推荐
ubuntu--Supervisor的简单使用.docx
ubuntu-supervisor-configuration:如何在Ubuntu 14.04.x上使用pip安装和配置Supervisor。 16.04.x
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式把这些被管理的进程当作supervisor的子进程来启动,...
Ubuntu 18.04 使用Gunicorn + Nginx + Supervisor为Flask应用提供服务
sir 一个受supervisor&pm2启发非常棒的流程管理工具
超详细的flask部署全过程,压缩包内有部署详细步骤和Linux服务器历史命令记录,写的比较详细。我用的是阿里云的linux服务器,其他的linux服务器也大同小异,过程都差不多的,结合百度一定能够部署成功,祝你好运!
Ubuntu 16系统下局域网环境下supervisor 安装包,按博客步骤完成安装与配置
收集了supervisor所需要的多个安装包,并且测试成功, 可以启动dotnetcore程序,并进行监控。
详细介绍Avaya公司CMS Supervisor 使用方法和配置技巧。
自动安装supervisor
supervisor在linux环境下的离线安装包,包括所有依赖包(不包括py,py请自行安装)
资源来源于自己部署沙箱时使用的,使用的是Ubuntu22.04.1版本的系统 ps: 因为安装过程涉及到依赖问题,尽可能使用下面的命令安装) 下载后解压及无错安装命令: sudo tar -xvf softbag.tar -C /var/cache/apt/...
supervisor是linux下的线程守护工具,在 Linux 上有很多可以管理进程的工具,我们使用 Supervisor 来做这个事情。原因有两点: 1、它是微软官方文档推荐的,降低学习成本。 2、它并不一定是最好的,但一定是...
Supervisor是一个进程控制系统. 它是一个C/S系统(注意: 其提供WEB接口给用户查询和控制), 它允许用户去监控和控制在类UNIX系统的进程. 它的目标与launchd, daemontools和runit有些相似, 但是与它们不一样的是, 它...
Supervisor守护进程离线脚本无脑安装
Supervisor是用Python开发的一个client/server服务,是Linux/Unix系统下的一个进程管理工具,不支持Windows系统。它可以很方便的监听、启动、停止、重启一个或多个进程。用Supervisor管理的进程,当一个进程意外被杀...
一、 简介 二、 安装依赖 三、 安装Supervisor 四、 配置Supervisor 五、 Supervisor相关操作 六、 设置Supervisor为服务 七、 配置要管理的程序 八、 运行效果 九、 故障排除
Supervisor安装配置及问题--linux进程守护 Supervisor安装配置及问题--linux进程守护 Supervisor安装配置及问题--linux进程守护