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 Then use pip to install version 3.1 of supervisor Generate configuration files Configuration Files [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:
|
<<: Vue implements student management function
>>: Detailed explanation of MySQL subqueries (nested queries), join tables, and combined queries
I just happened to encounter this small requireme...
Table of contents introduce Installation and Usag...
I've been researching some things about linke...
Table of contents 1. Preparation 2. Define the gl...
This article uses an example to illustrate the us...
Generally speaking, when we view the contents of ...
Disadvantages of single-node database Large-scale...
This article shares the specific code of jQuery...
HTML provides five space entities with different ...
Mainly for low version browsers <!-- --> is ...
I just learned some html yesterday, and I couldn...
Table of contents 1. Problem Background 2. What a...
In MySQL, there is a function called "group_...
<body style="scroll:no"> <tabl...
In this article, I will show you how to install a...