Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Some configurations of CentOS7 supervisord process Manager

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1 supervisorctl shutdown off

2 supervisorctl reload overload

3 supervisorctl restart all restart all services

4 find /-name supervisor.sock

Unlink / path/supervisor.sock

Kill process

5 Note that the ini file suffix must be set to start the process.

5.1 required for the first step of supervisord

5.2 supervisorctl start laravel-worker:* this command can start the second step

6 when developing, you should pay attention to restart the process after the code has been changed, because it is resident

Configuration

Cat / etc/supervisord.d/nad_crm_queue_send_book_email_one.ini

[program:send_crm_book_email_one]

Process_name=% (programname) s% (process_num) 02d

Command=php72 / var/www/nad/crm/api/nad-nad_crm_api_0119/artisan queue:work redis-queue=send_book_email_one-sleep=3-tries=3

Autostart=true

Autorestart=true

User=root

Numprocs=8

Redirect_stderr=true

Stdout_logfile=/var/www/nad/crm/api/nad-nad_crm_api_0119/storage/logs/send_book_email_one.log

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report