安装教程:https://www.cnblogs.com/Hai--D/p/5820718.html
python 设置 默认:https://blog.csdn.net/weixin_30836505/article/details/112959406
启动 supervisord -c /etc/supervisor/supervisord.conf
启动:supervisorctl start ** 启动某个进程
supervisorctl stop all 关闭 全部
[program:send_invoice]
#发票推送
command=php index.php /Api/Kafka/send_invoice
directory=/home/wwwroot/ywzs/
autorestart=true
startsecs=3
startretries=3
stdout_logfile=/home/shell/logs/send_invoice.out.log
stderr_logfile=/home/shell/logs/send_invoice.err.log
stdout_logfile_maxbytes=1024MB
stderr_logfile_maxbytes=1024MB
user=root
priority=999
numprocs=1
process_name=%(program_name)s_%(process_num)02d