In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.