# gpapi **Repository Path**: ctzjj/gpapi ## Basic Information - **Project Name**: gpapi - **Description**: 引力计划API - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-04 - **Last Updated**: 2025-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # elight-skeleton #### 介绍 安装swooel pecl install https://pecl.php.net/get/swoole-5.1.7.tgz 安装swoole时添加 --enable-openssl 修改10-opcache.ini opcache.enable_cli=on opcache.jit=on nginx location / { proxy_pass http://127.0.0.1:9505; proxy_set_header Host $host; proxy_connect_timeout 1800s; proxy_send_timeout 3600s; proxy_read_timeout 3600s; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 ini_set('memory_limit', '256M'); ini_set('memory_limit', '256M'); 使用ini_set会影响整个Work进程,包括在其中运行的协程 while(1) 死循环会导致协程无法让出调度器,最终整个进程都会被阻塞,其中的协程将得不到运行 在Worker进程开启前调用mr_rand或者array_rand,shuffle等有随机功能的函数,在work进程中在使用rand的函数,结果都会一样,必须进行随机数播种mt_srand() 开启opcache时,进行reload的话,要在WorkerStart时清除Opchche缓存 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)