[TOC]
## 配置要求
* PHP 7.0+
* MySql5.5+ Innodb引擎
* thinkphp5.1伪静态
* fileinfo扩展
* 绑定域名到public
* 分发域名绑定到public
* CDN域名绑定到public/images
* 后台账号密码 admin admin123
* File缓存可以直接使用,其他需要安装配置
## 以宝塔为例子
#### 1. 首先上传文件夹到网站根目录
#### 2. 解压压缩包
#### 3. 设置网站运行目录
![](https://img.kancloud.cn/5c/f3/5cf386dbb1a214329b33ff821fe2bb6a_664x369.png)
#### 4. 设置伪静态
* [ ] 使用thinkphp伪静态即可
![](https://img.kancloud.cn/ff/3e/ff3e1e076e9c841638a9c453bfc32cc1_617x288.png)
#### 5. 填写数据库信息
![](https://img.kancloud.cn/36/cf/36cf96709b5f4e56556d424454673a9c_435x425.png)
#### 6. 导入数据库
#### 7. 打开绑定域名
**安装没有错误的话应该就能看到**
![](https://img.kancloud.cn/9b/f5/9bf56d1bec774722b4a8028761a2db0e_1349x902.png)
#### Apache伪静态
* [ ] public/.htaccess文件
```
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST\_FILENAME} !-d
RewriteCond %{REQUEST\_FILENAME} !-f
#Apache放开下一行注释
RewriteRule ^(.\*)$ index.php/$1 \[QSA,PT,L\]
#phpstudy放开下一行注释
#RewriteRule ^(.\*)$ index.php \[L,E=PATH\_INFO:$1\]
```
#### Nginx伪静态
```
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
```