## 说明
<blockquote class="danger">在安装服务端之前先确保已经拉取git上的最新版(当前最新版本0.3)</blockquote>
服务端使用的框架为thinkphp5.搭建前请确保拥有lamp/lnmp/wamp环境
服务端代码文件夹为vuetp-php
windows集成环境可以使用phpstudy:http://www.phpstudy.net/
thinkphp5的本地部署也可以去看官方文档:https://www.kancloud.cn/manual/thinkphp5/129746
<blockquote class="info">Host文件本地映射</blockquote>
本地调试建议先去host文件映射一个域名(这里以test.vuetp.com作为例子)
host位置一般在C:\Windows\System32\drivers\etc下:
![](https://box.kancloud.cn/2415bc308d198ae5b77bb123f991ea49_814x73.png)
然后ping一下这个域名 如果指向127.0.0.1说明映射成功:
![](https://box.kancloud.cn/6234e26b27b5318bb70688b7539011e3_532x54.png)
<blockquote class="info">服务端的部署</blockquote>
使用apache的话,网站目录直接指向入口目录/public下即可
如果使用nginx的话,需要配置一下重写规则,规则在document/nginx.conf里面
<blockquote class="info"> 数据库配置</blockquote>
数据库文件位置:document/vuetp.sql
thinkphp5数据库配置文件 config/database.php:
![](https://box.kancloud.cn/8b004dbe260fc48f71de4b81993b30bf_620x269.png)
然后运行sql文件
最后你访问本地域名 test.vuetp.com 如果提示vuetp运行成功 说明服务端安装成功