In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the "manual installation of supervisor process daemon methods and steps" related knowledge, in the actual case of the operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
The text begins:
Install supervisor
1.1. Install the setuptools library for python
Yum install python-setuptools
1.2. Install supervisor through easy_install in setuptools
Easy_install supervisor
Create a configuration file (either way)
2.1. Vi / etc/supervisor.conf
2.2. Command echo_supervisord_conf > / etc/supervisor.conf
Modify configuration file 3.1. Add at the end of the main configuration file
[include] files = / www/server/supervisor/profile/*.ini
3.2. Create a subprofile under the / www/server/supervisor/profile/ path and add information (daemons) 3. 3. 0. Create a swoole daemon vim merchant_swoole.ini
; monitor program name [program:merchant-swoole] process_name=% (program_name)%% (process_num) 02d; program instruction command=php / data/www/crmeb_merchant/think swoole restart to be managed by supervisor; whether to start autostart=true automatically; whether to restart autorestart=true numprocs=8 automatically; whether to redirect error redirect_stderr=true Redirect to the log file stdout_logfile=/data/www/supervisor.log of the specified path
3.4. Create a queue daemon vim merchant_swoole.ini
; monitor program name [program:merchant-queue] process_name=% (program_name)%% (process_num) 02d; program instruction command=php / data/www/crmeb_merchant/think queue:work-- tries=3 to be managed by supervisor; whether to start autostart=true automatically; whether to restart autorestart=true numprocs=8 automatically; whether to redirect error redirect_stderr=true Redirect to the log file stdout_logfile=/data/www/supervisor.log of the specified path
Check whether the daemon process ps-ef is started | grep think
501 84001 83800 0 9:40 ttys002 00.70 php / Users/inuo/Code/Work/crmeb_merchant/think queue:work-- tries 501 84197 84004 0 10:04 ttys003 00.00 grep-- color=auto-- exclude-dir=.bzr-- exclude-dir=CVS-- exclude-dir=.git-- exclude-dir=.hg-- exclude-dir=.svn-- exclude-dir=.idea-- exclude-dir=.tox think 501 84165 84122 0 10:04 morning ttys004 0 : 00.12 php / Users/inuo/Code/Work/crmeb_merchant/think swoole restart 501 84166 84165 0 10:04 morning ttys004 0pur00.01 php / Users/inuo/Code/Work/crmeb_merchant/think swoole restart
As you can see here, it's already started.
This is the end of the content of "how to manually install the supervisor process daemon". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for 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.