久而旧之

Centos下两种守护进程的配置

2018-03-21

一、php artisan

1
2
3
4
5
6
7
8
9
[program:laravel-worker-xx]
process_name=%(program_name)s_%(process_num)02d
command=php /home/wwwroot/www.xxx.com/artisan queue:work --tries=3
autostart=true
autorestart=true
user=www
numprocs=4
redirect_stderr=true
stdout_logfile=/home/wwwroot/www.xxx.com/storage/logs/worker.log

二、执行node js

1
2
3
4
5
6
7
8
9
[program:laravel-worker-node]
process_name=%(program_name)s_%(process_num)02d
command= node /home/socket/stocket.js
autostart=true
autorestart=true
user=www
numprocs=1
redirect_stderr=true
stdout_logfile=/home/wwwroot/www.xx.com/storage/logs/worker.log
Tags: Centos
使用支付宝打赏
使用微信打赏

欢迎点击上方按钮对我打赏,谢谢你给我吃糖果