|
|
há 1 dia atrás | |
|---|---|---|
| app | há 2 semanas atrás | |
| config | há 2 meses atrás | |
| extend | há 3 meses atrás | |
| public | há 2 meses atrás | |
| route | há 4 meses atrás | |
| view | há 3 meses atrás | |
| .gitignore | há 2 meses atrás | |
| .htaccess | há 2 meses atrás | |
| .travis.yml | há 4 meses atrás | |
| LICENSE | há 3 meses atrás | |
| LICENSE.txt | há 4 meses atrás | |
| README.md | há 1 dia atrás | |
| composer.json | há 3 meses atrás | |
| composer.lock | há 2 meses atrás | |
| crontab.txt | há 4 meses atrás | |
| example.env | há 2 meses atrás | |
| nginx.htaccess | há 2 meses atrás | |
| start.php | há 4 meses atrás | |
| think | há 4 meses atrás |
简体中文 | English
后台账号:admin 密码:123456
php版本:7.3
重要操作
使用宝塔面板更易安装
以下内容,非常重要!!!!!如果出现错误,重新检查是否以满足条件。
1、PHP需要安装扩展:redis fileinfo
2、PHP需要取消禁用函数:shell_exec chown exec putenv proc_open pcntl_exec pcntl_alarm pcntl_fork pcntl_waitpid pcntl_wait pcntl_signal pcntl_signal_dispatch
以上内容,非常重要!!!!!如果出现错误,重新检查是否以满足条件。
git仓库:http://47.76.126.2:3000/football/football-service-api.git
把代码上传至服务器,将整个目录权限给 www 用户,并赋予 755权限,创建网站,把网站的运行目录指向项目根目录下的 public 目录,运行目录一定要是这个。
设置伪静态和反向代理,下面只展示nginx的伪静态和反向代理配置,apache的请自行百度或者使用chatGPT转换。【直接复制下面全部代码到伪静态中即可】
#伪静态配置
location ~* (runtime|application)/{
return 403;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
#反向代理配置,如果有修改端口,需要替换下方的8282端口
location /wss
{
proxy_pass http://127.0.0.1:8282;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}