资讯动态

Thinkcmf6.0安装教程

发布时间:2026/8/20 15:14:44 来源:尧图企业网站定制
1.去官网下载thinkcmf / ThinkCMF--6.0location ~* (runtime|application)/{ return 403; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s$1 last; break; } }2. 去 thinkcmf / ThinkCMF企业门户解决方案--下载3.然后把第二步文件合并到第一步哪里4.用phpstudy创建网站配置好nginx文件location / { index index.php index.html index.htm; #如果请求既不是一个文件也不是一个目录则执行一下重写规则 if (!-e $request_filename) { #地址作为将参数rewrite到index.php上。 rewrite ^/(.*)$ /index.php?s$1; #若是子目录则使用下面这句将subdir改成目录名称即可。 #rewrite ^/subdir/(.*)$ /subdir/index.php?s$1; } } location /api/ { index index.php index.html index.htm; #如果请求既不是一个文件也不是一个目录则执行一下重写规则 if (!-e $request_filename) { #若是子目录则使用下面这句将subdir改成目录名称即可。 rewrite ^/api/(.*)$ /api.php?s$1; } } location ~* ^\/upload\/.\.(html|php)$ { return 404; } location ~* ^\/plugins\/.\.(html|php)$ { return 404; } location ~* ^\/themes\/.\.(html|php)$ { return 404; }5.启动安装数据库6.安装成功后删除安装程序composer remove thinkcmf/cmf-install设置调试模式1.把.example.env复制一分 名字修改为.env2.然后留下第一行其余的全部删除伪静态处理location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s$1 last; break; } }

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价