php-think-queue队列守护进程supervisor安装 1.安装supervisor1yum install supervisor 2.设置开机自启1systemctl enable supervisord.service 3.配置文件123456789101112131415161.进入配置文件目录cd /etc/supervisord.d2.创建配置文件 一个进程一个配置文件 名字自己随意vi process.ini[program:自定义名称]process_name=进程名称command=php /www/wwwroot/项目目录/think queue:work --queue 需监听的队列名称directory= /www/wwwroot/项目目录autostart=trueautorestart=trueuser=wwwnumprocs=1redirect_stderr=truestdout_logfile=/root/日志文件名称.log 4.supervisor常用命令123456789101112131415161718# 启动systemctl start supervisord.service# 停止systemctl stop supervisord.service# 重启systemctl restart supervisord.service # 查看进程状态supervisorctl status # 关闭进程 stop后边可增加进程名称参数 all为关闭所有supervisorctl stop all# 启动进程 同上supervisorctl start all# 重启进程 同上supervisorctl restart all# 重新读取配置文件supervisorctl reread PHP php-think-queue队列守护进程supervisor安装 http://example.com/2025/04/16/php-think-queue队列守护进程supervisor安装/ 作者 zgx 发布于 2025年4月16日 许可协议 php-xdebuger 安装 上一篇 php-hyperf安装和使用 下一篇