🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[danger] 前言 + 定时开奖、新活动提醒等功能需要配置守护进程才能正常使用 >[danger] 进入 `软件商店`, 安装 `Supervisor管理器` ![](https://img.kancloud.cn/af/72/af72d2c078612e3a71a8fdc2773b98a1_1649x452.png) >[danger] 添加守护进行配置 + 名称推荐和模块标识保持一致 ``` lingchi_lottery_draw ``` + `启用用户` 不建议使用 `root`, 推荐使用站点的所有者用户, 一般都是 `www` ![](https://img.kancloud.cn/07/d1/07d109d80b710a7c106c2e6d891622b7_1431x332.png) + 运行目录:选择模块根目录作为运行目录,示例如下 ``` /www/wwwroot/weixin.yyds.cn/addons/lingchi_lottery_draw ``` + 启用命令 ``` php think queue:listen --queue lingchi_lottery_draw --tries 5 ``` + 完整示例 ![](https://img.kancloud.cn/62/38/623850a0a0fd083585f15bf4ab4afc3a_1522x759.png) >[danger] 进程启动失败问题处理 + 命令行的PHP版本设置为7.2 ![](https://img.kancloud.cn/ca/79/ca7902b73d549acb2881266e69b6b0ad_2124x840.png) + 在软件商店找到php7.2, 删除禁用函数 `proc_open` 再重新启动进程 ![](https://img.kancloud.cn/51/48/5148783d5dc1277a81182d51d03524b6_2280x1004.png)