# tuike-api **Repository Path**: layheart/tuike-api ## Basic Information - **Project Name**: tuike-api - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-31 - **Last Updated**: 2025-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [环境要求] ``` 支持系统:Win7/Win8/Win10/Win11/Linux WEB服务器:nginx/apache PHP版本:php = 8.0.x 数据库:MySQL >= 5.7 Nginx配置伪静态: location ~* (runtime|application)/{ return 403; } location /adminsystem.php { if (!-e $request_filename){ rewrite ^/adminsystem.php(.*)$ /adminsystem.php?s=$1 last; break; } } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } ``` - 项目路径为/public目录 - 导入根目录sql目录下的SQL文件 - 将整个项目权限改为755,所有者为www,防止可能会出现日志写入等权限问题 - 将.env.example复制文件为.env,按具体服务器配置修改参数 - 必须安装redis扩展,启用curl、fileinfo、mbstring、openssl、mysqli、gd等扩展 - PHP禁止函数去掉putenv、proc_open - composer install安装依赖库 - 启用定时任务:* * * * * cd /path/ && php think schedule:run,path改为项目根目录,添加宝塔计划任务就* * * * * 去掉则可 - 执行队列:php think queue:listen --queue=tuike --timeout=0,目录为项目的根目录,默认保护进程方式为Supervisor,宝塔在软件商店搜索进程守护管理安装 - 1、使用Supervisor守护进程,命令如上执行 - 2、使用定时任务执行需要把PHP禁用方法shell_exec去掉,然后把application/command/Schedule.php的$this->command('queue')->everyMinute();代码注释掉,记得要先启用定时任务 - 后台访问地址:http://域名/adminsystem.php/admin/index/login.html ,登录账号密码:admin / admin