Tutorial on centos6.5 upgrade, installation and configuration of supervisor
Supervisor introduction
Supervisor is a client/server service developed with Python. It is a process management tool under Linux/Unix system and does not support Windows system. It can easily monitor, start, stop, and restart one or more processes. With Supervisor management process, when a process is accidentally killed, supervisort monitoring process after the death, will automatically pull it up, it is very convenient to achieve the automatic recovery of the process function, no longer need to write their own shell script to control.
Because I want to use it to manage multiple PHP processes to execute tasks, configuring multiple subprocesses in the default version does not work
The default version of supervisor is lower than 2.1.9, which seems to be a problem for running multiple child processes, and the latest version of supervisor4.1 requires a higher version of python, so there is the following solution
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 file
Easy_install supervisor==3.1.3
Configuration file
/ etc/supervisord.conf
[program:php_imap_daishou] command=/usr/bin/php / usr/local/sinamail/tools/new/othermail/cli.php entresignprocess_name=% (program_name)% (process_num) 02dnumprocs=10user=root
Summary
The above is the tutorial of centos6.5 upgrade, installation and configuration introduced by Xiaobian. I hope it will be helpful to you!