[Linux] centos6.5 upgrade installation supervisor

Because I use it to manage multiple PHP processes to perform the task, configure multiple sub-processes in the default version does not work

The default version of the supervisor 2.1.9 version is relatively low, for running multiple child process looks like there is a problem, the latest version of supervisor4.1 again because the job requires a higher version of python, so only the following solutions

Install pip
yum install Python-pip
and then install the 3.1 version of the pip Supervisor
pip install Supervisor == 3.1.3
generate a configuration file
easy_install supervisor == 3.1.3

Profiles

/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

 

Guess you like

Origin www.cnblogs.com/taoshihan/p/11822768.html