supervisord

supervisor的安装与简单介绍

蹲街弑〆低调 提交于 2020-01-01 00:21:27
1,介绍 Supervisor是一个进程管理工具,官方的说法 用途就是有一个进程需要每时每刻不断的跑,但是这个进程又有可能由于各种原因有可能中断。当进程中断的时候我希望能自动重新启动它,此时,我就需要使用到了Supervisor 这个工具主要就两个命令: supervisord : supervisor的服务器端部分,启动supervisor就是运行这个命令 supervisorctl:启动supervisor的命令行窗口。 2安装 第一种方法: pip install supervisor pip的安装 1 cat pip_an.sh 2 #!/bin/bash 3 wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 4 tar zxvf setuptools-0.6c11.tar.gz 5 cd setuptools-0.6c11 6 python setup.py build 7 python setup.py install 8 wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa33326" 9 tar -xzvf pip-1.5.4

what is the advantage of using supervisord over monit

老子叫甜甜 提交于 2019-12-31 08:49:10
问题 We have a custom setup which has several daemons (web apps + background tasks) running. I am looking at using a service which helps us to monitor those daemons and restart them if their resource consumption exceeds over a level. I will appreciate any insight on when one is better over the other. As I understand monit spins up a new process while supervisord starts a sub process. What is the pros and cons of this approach ? I will also be using upstart to monitor monit or supervisord itself.

Linux安装supervisor工具-管理kingshard

隐身守侯 提交于 2019-12-30 18:19:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.前言 2.安装 2.1 安装Python 2.2 安装supervisor 2.3 编辑配置文件 2.3.1 生成配置文件 2.3.2 配置supervisord.conf 3.管理supervisor 4.设置开机自启动 1.前言 在一个分布式环境中,每台机器上可能需要启动和停止多个进程,使用命令行方式一个一个手动启动和停止非常麻烦,而且查看每个进程的状态也很不方便。如果有一个工具能够实现每台机器上多个进程的简单高效中心化管理将是非常方便的。于是Supervisord工具应运而生。与Supervisord类似的工具包括monit,daemontools和runit。supervisor是用python写的一个进程管理工具,用来启动,重启,关闭进程 2.安装 Supervisord是运行在Python环境下的服务监控程序,所以在安装supervisord之前必须有python环境 2.1 安装Python 检查是否安装python,没有则安装 > python -V > yum install python-setuptools 2.2 安装supervisor 安装Python完成后安装supervisor > yum install supervisor > supervisorctl status 2

Running celeryd_multi with supervisor

我是研究僧i 提交于 2019-12-30 08:30:14
问题 I'm working with djcelery and supervisor. I was running a celery with supervisor and everything worked fine, once I realized that I needed to change it to celery multi everything broke up. If I run celeryd_multi in a terminal it works but always run in background, like supervisor need that the command run in foreground there where the problem is. This is my celery.ini : [program:celery_{{ division }}] command = {{ virtualenv_bin_dir }}/python manage.py celeryd_multi start default mailchimp -c

鱼仔系统部署教程

允我心安 提交于 2019-12-30 05:09:47
下载地址: https://github.com/qingduyu/roe 1. 基本需求 1.1 系统推荐配置 生产建议使用:8核以上(python相当消耗cpu),16G以上内存 (数据传输很大的),磁盘 350G 以上 测试建议使用:cpu 4核以上,ram 8G以上,disk 50G以上 1.2 基础软件需求 python2.7 (自编译), mysql 5.6以上(暂时不做安装教程指导) , redis (暂时本机单机版,不做教程,不设密码) 1.3 yum 安装的软件 yum install epel-release yum install sshpass nmap supervisor 1.4.本机的ssh-key生成 ssh-keygen 一路回车 2. python 2.7 的虚拟环境(还是决定添加) 2.1 编译2.7 编译前的依赖安装 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 自己下载2.7.15 进行编译 cd Python-2.7.15 ./configure --prefix=/usr/local/python2.7 make -j 4 make install 安装pip

airflow1.8.0部署参考

筅森魡賤 提交于 2019-12-29 23:36:55
airflow官网 airflow-github Airflow1.10版本,有UTC时区问题,所以还是使用airflow1.8.0 公司仍然是centos6.5,Python默认是2.6,而airflow使用Celery执行需要Python2.7,嗯,先准备新的Python环境 ## http://hao.jobbole.com/pythonbrew/ ## export PYTHONBREW_ROOT=/usr/local/.pythonbrew yum install python-pip # 默认安装在家目录 export PYTHONBREW_ROOT=/usr/local/.pythonbrew pip install pythonbrew ## 各种坑 ## 先下载Python源码包 wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz #...... yum -y install python-devel mysql-devel ## 官方指导:安装依赖包 https://github.com/utahta/pythonbrew yum -y install zlib-devel openssl-devel readline-devel pythonbrew install Python-2

Install and configure supervisord on centos 7 to run Laravel queues permanently

大城市里の小女人 提交于 2019-12-29 03:07:45
问题 I want to use Laravel queue system in my project and I want to run php artisan queue:work permanently on server's background, I did some searches about this and I found a command line which can run it even after quit from ssh terminal but It can be down in some cases and can make terrible problems for me. So after a while I found out that there is a package named Supervisord which can restart command even after server is rebooted. So I want to ask someone to help from 0 to 100 step by step

Install and configure supervisord on centos 7 to run Laravel queues permanently

℡╲_俬逩灬. 提交于 2019-12-29 03:06:31
问题 I want to use Laravel queue system in my project and I want to run php artisan queue:work permanently on server's background, I did some searches about this and I found a command line which can run it even after quit from ssh terminal but It can be down in some cases and can make terrible problems for me. So after a while I found out that there is a package named Supervisord which can restart command even after server is rebooted. So I want to ask someone to help from 0 to 100 step by step

supervisord 备注

醉酒当歌 提交于 2019-12-27 06:25:18
最近项目中使用了supervisord,简单做下备注。 supervisord是linux下基于python开发的一个服务管理工具,类似之前node环境下的forever,用该方法启动进程后,supervisord将管理该进程,若进程被kill可以自动重启。 1、安装:   pip install supervisord 2、生成配置文件:   echo_supervisord_conf > /etc/supervisord.conf 3、修改配置文件,将待启动的进程配置进去: [program:app] command=ping 127.0.0.1 autostart = true startsecs = 5 user = root redirect_stderr = true 备注:上例为测试进程,作用是ping本机IP,名称为app 4、启动supervisord:   /usr/bin/supervisord -c /etc/supervisord.conf 5、启动该进程app:   supervisorctl start app 6、结果查询:   执行supervisorctl结果如下:   此时kill该进程后查看,APP进程会被迅速重启。 来源: https://www.cnblogs.com/Fredric-2013/p/7447817.html

Supervisor安装与配置

南笙酒味 提交于 2019-12-26 17:08:02
Supervisor( http://supervisord.org/)是用Python开发的一个client/server服务,是Linux/Unix系统下的一个进程管理工具,不支持Windows系统。它可以很方便的监听、启动、停止、重启一个或多个进程。用Supervisor管理的进程,当一个进程意外被杀死,supervisort监听到进程死后,会自动将它重新拉起,很方便的做到进程自动恢复的功能,不再需要自己写shell脚本来控制 。 因为Supervisor是Python开发的,安装前先检查一下系统否安装了Python2.4以上版本。下面以CentOS7,Python2.7版本环境下,介绍Supervisor的安装与配置步聚: 1、安装Python包管理工具(easy_install) easy_install是setuptools包里带的一个命令,使用easy_install实际上是在调用setuptools来完成安装模块的工作,所以安装setuptools即可。 wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py -O - | sudo python 2、安装supervisor easy_install supervisor supervisor安装完成后会生成三个执行程序