Tutorial on upgrading, installing and configuring supervisor on centos6.5

Tutorial on upgrading, installing and configuring supervisor on centos6.5

Supervisor Introduction

Supervisor is a client/server service developed in Python. It is a process management tool for Linux/Unix systems and does not support Windows systems. It can easily monitor, start, stop, and restart one or more processes. When a process managed by Supervisor is killed accidentally, supervisor will automatically restart it after detecting the process death, which makes it very convenient to automatically restore the process without having to write shell scripts to control it.

Because I want to use it to manage multiple PHP processes to perform tasks, configuring multiple subprocesses in the default version does not work

The default version of Supervisor is 2.1.9, which seems to have problems running multiple subprocesses. The latest version of Supervisor 4.1 requires a higher version of Python, so the following solution is used:

Install pip first

yum install python-pip

Then use pip to install version 3.1 of supervisor

pip install supervisor==3.1.3

Generate configuration files

easy_install supervisor==3.1.3

Configuration Files

/etc/supervisord.conf

[program:php_imap_daishou]
command=/usr/bin/php /usr/local/sinamail/tools/new/othermail/cli.php entresign
process_name=%(program_name)s_%(process_num)02d
numprocs=10
user=root 

Summarize

The above is the tutorial on upgrading, installing and configuring Supervisor in CentOS 6.5 that I introduced to you. I hope it will be helpful to you!

You may also be interested in:
  • Building .NET Core 2.0 + Nginx + Supervisor environment under Centos7 system
  • Detailed tutorial on using supervisor in centos7
  • Installation, configuration and use of process daemon supervisor in Linux
  • Detailed explanation of Supervisor installation and configuration (Linux/Unix process management tool)
  • Installation and use tutorial of Python process management tool supervisor
  • Installation and configuration of Supervisor process monitoring management tool under Mac

<<:  Vue implements student management function

>>:  Detailed explanation of MySQL subqueries (nested queries), join tables, and combined queries

Recommend

Thoughts on truncation of multi-line text with a "show more" button

I just happened to encounter this small requireme...

Pitfall notes of vuex and pinia in vue3

Table of contents introduce Installation and Usag...

Detailed installation and use of virtuoso database under Linux system

I've been researching some things about linke...

Vue uses vue-quill-editor rich text editor and uploads pictures to the server

Table of contents 1. Preparation 2. Define the gl...

Example analysis of the usage of the new json field type in mysql5.7

This article uses an example to illustrate the us...

10 ways to view compressed file contents in Linux (summary)

Generally speaking, when we view the contents of ...

Implementation of Docker deployment of MySQL cluster

Disadvantages of single-node database Large-scale...

jQuery clicks on the love effect

This article shares the specific code of jQuery&#...

The meaning of the 5 types of spaces in HTML

HTML provides five space entities with different ...

What is the function of !-- -- in HTML page style?

Mainly for low version browsers <!-- --> is ...

A small introduction to the use of position in HTML

I just learned some html yesterday, and I couldn&#...

Summary of pitfalls in virtualbox centos7 nat+host-only networking

Table of contents 1. Problem Background 2. What a...

How to modify the length limit of group_concat in Mysql

In MySQL, there is a function called "group_...

HTML adaptive table method

<body style="scroll:no"> <tabl...

Tutorial on configuring and using i3 window manager in Linux

In this article, I will show you how to install a...