ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### **宝塔用户可按照下方步骤** ***** >[danger] 一定要删除对应PHP版本中的 `proc_open`函数,否则无法启动消息队列 ## **宝塔配置方法:** 1. **宝塔软件商店**,已安装软件,或搜索**Supervisor** ![](https://img.kancloud.cn/53/c2/53c28a0cf713fd8a4d74efe08d1ae79b_568x415.png) 2.点击**设置->添加守护进程** ![](https://img.kancloud.cn/05/db/05db67cc059a6d8f7eed730d1b4a105f_1711x891.png) 3.填写名称(自定义填写) , 启动用户**www**。然后点击选择**运行目录** ![](https://img.kancloud.cn/5f/64/5f643fc118f452537b366f58b4237120_1914x1010.png) 4.选择程序目录,这里以/www/wwwroot/ 为例。(如果您的系统在数据盘挂在,则选择数据盘) ![](https://img.kancloud.cn/3e/65/3e65803ac9123c93b40bd6b8d9a390ee_905x649.png) 5. **勾选程序目录文件夹**,然后点击选择 ![](https://img.kancloud.cn/38/59/38597cbd54ee739ffa1b1fb4425f9c13_919x632.png) 6.添加下面**两个启动命令**: 启动普通消息队列 ``` php think queue:listen --queue CRMEB ``` 启动批量任务队列 ``` php think queue:listen --queue BATCH-CRMEB ``` ![](https://img.kancloud.cn/97/d5/97d5be1353c5982c7ca7cb1ff1387d67_1082x914.png) 7.点击确定添加进程守护. ![](https://img.kancloud.cn/10/88/10880f846397b71c2c435787635d1ada_1330x538.png) 8.如进程处于关闭状态,请点击[**启动**]。 已启动状态的,则不用处理。 注: 1.如遇到添加完成后,守护进程里空白无内容,请更新宝塔面板。 2.启动失败,请检查对应PHP版本里是否已经**删除**对应PHP版本中的 `proc_open`函数!