supervisor 管理

https://zhuanlan.zhihu.com/p/626826371?utm_id=0

apk add
https://learnku.com/articles/46790
修改配置文件,开放防火墙9001端口

[program:xxx]
driectory=/xxx/queue
command =nohup php-71 /xxx/common.php > /xxx/queue.log 2>&1 &
user = root
autostart = true
autorestart = true
stdout_logfile=/var/log/supervisor/xxx-out.log
stderr_logfile=/var/log/supervisor/xxx-err.log
priority=1
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB

posted on 2024-03-06 09:47  木林coder  阅读(1)  评论(0编辑  收藏  举报

导航