# thinkphp5-queue操作秒杀 **Repository Path**: leyifenger/thinkphp5queue ## Basic Information - **Project Name**: thinkphp5-queue操作秒杀 - **Description**: thinkphp5-queue操作秒杀 需要配置redis - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2021-01-16 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # thinkphp5-queue操作秒杀 #### 项目介绍 thinkphp5-queue操作秒杀 需要配置redis #### 软件架构 软件架构说明 #### 安装教程 1. 本地配置好redis服务 确保启动 2. composer安装好thinkphp5.1.8的组件以及扩展 3. 配置好本地域名到根目录public直到可以访问 #### 使用说明 1. 项目搭建好后 需要使用命令php think queue:listen --queue BuyingJobQueue 启用监听 2. 由于提供测试学习使用,并未使用mysql数据库,使用文件模拟数据库在application\data目录下,buyuser为记录成功用户,stock为商品提供测试减库存 3. 访问 http://域名/index/buy/index 入口,可做并发测试 #### 参与贡献 1. Fork 本项目 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [http://git.mydoc.io/](http://git.mydoc.io/) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)