🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# :-: 宝塔部署 ### 1.登录宝塔网址,在网站--添加站点 ![](https://img.kancloud.cn/2e/48/2e4898d2f4b290a2e2e073b06db6223e_1920x647.png) ![](https://img.kancloud.cn/35/42/35425d814640389a0475ecf65f03d66a_1919x788.png) ### 2.上传文件到根目录 ![](https://img.kancloud.cn/20/80/2080e515655d259215537e9e12cfdf86_1920x644.png) ![](https://img.kancloud.cn/73/50/7350555cd7d87b4d56b8d4c588d86e43_1920x755.png) ### 3.选择之前在官网下载下的源码进行上传 ![](https://img.kancloud.cn/39/5a/395a9ec91f4aa682f659d4b321270f6f_1730x742.png) ### 4.上传到根目录之后进行解压 ![](https://img.kancloud.cn/79/54/795465dcca1057382153d01192034d28_1911x646.png) ### 5.检查php版本以及php fileinfo扩展是否已安装 ![](https://img.kancloud.cn/8e/25/8e25101657c0d29ff93b5d7a773b26f3_1730x371.png) ![](https://img.kancloud.cn/23/ef/23efacd502b0bea7c78e2d7d4de9d98d_1920x639.png) ### 6.访问搭好的项目。用域名访问来进行安装 ![](https://img.kancloud.cn/f9/33/f933c9fb8da71b0f108c497fb7a44797_1321x753.png) ![](https://img.kancloud.cn/2e/38/2e38f2a1d7a277aba4f5a591c20b2615_1393x871.png) ![](https://img.kancloud.cn/56/68/566829e85b3a4e28f3627c38fb317489_1494x918.png) ### 7.安装完之后配置伪静态 Nginx环境配置伪静态 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } ![](https://img.kancloud.cn/3c/ef/3cef61148d32fc4cb0801ce2ec872933_1727x423.png) 配置h5访问(Nginx环境) location /h5{ if (!-e $request_filename) { rewrite ^/(.*) /h5/index.html last; break; } } ![](https://img.kancloud.cn/70/c6/70c69d8feb0323429cbf0f02b6abef08_1713x392.png) ### 8.配置完之后就可以访问了 ![](https://img.kancloud.cn/a4/b6/a4b6d299337b41601a7545ceb99dd8f4_1399x633.png) ### 9.配置完之后后台需要刷新一下h5 ![](https://img.kancloud.cn/5a/2b/5a2b4a342d5af46f1b8fa4e403850cc1_1449x643.png)