💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# :-: 宝塔部署 ### 1.点击左侧菜单**软件管理** ![](https://img.kancloud.cn/e8/c3/e8c34c65c0a7155658ddf70078fa5e30_756x341.png) ### 2.安装系统软件:**Nginx 、MySQL、PHP( PHP7.4版本)、Redis、phpMyAdmin(Web端MySQL管理工具)。** ![](https://img.kancloud.cn/ee/23/ee23d8a2aa3f57aaa302eb94a7e50df8_756x368.png) ### 3.登录宝塔网址,在网站-**-添加站点** ![](https://img.kancloud.cn/9a/11/9a11a56a78ade5d40256523aa86caa8d_1920x647.png) ![](https://img.kancloud.cn/a0/a2/a0a2c4b72b0fc88c2be525673727ab46_1919x788.png) ### 4.上传文件到**根目录** ![](https://img.kancloud.cn/6e/45/6e45f12d1f7e4dc6ed0c9b1001654df2_1920x644.png) ![](https://img.kancloud.cn/f2/2a/f22a00d4edc01999dc45d86aab417e99_1920x755.png) ### 5.选择之前在官网下载下的**源码上传** ![](https://img.kancloud.cn/a8/69/a869171f37d62ca8ece734e64c12db10_1730x742.png) ### 6.**上传**到根目录之后进行**解压** ![](https://img.kancloud.cn/da/66/da66297430a7e8a7972f89638f554cb4_1911x646.png) ### 7.检查php版本以及**php、fileinfo扩展**是否已安装 ![](https://img.kancloud.cn/84/d5/84d5fb914c4a971509a994fb723c0ce5_1730x371.png) ![](https://img.kancloud.cn/02/59/0259c39fc6fcdbaadd39003aa234689a_1920x639.png) ### 8.进入**配置修改**:调整PHP脚本内存限制为300M以上。 ![](https://doc.crmeb.com/uploads/pro/crmebprov2/20220513/ec3d5dcfed5f37ffc2bb0d20b885c7d8.png) ### 9.访问搭好的项目。用域名访问来进行安装 ![](https://img.kancloud.cn/dc/4a/dc4ae9954bace2b153046a3fcd6d4a5d_1321x753.png) ![](https://img.kancloud.cn/a6/9a/a69ac03ece816fb202d6e107599dda6e_1393x871.png) ![](https://img.kancloud.cn/6b/b5/6bb507a4898b86826c4bc6eb480f0323_1494x918.png) ### 10.**伪静态配置** **Nginx环境配置伪静态(重要)** ![](https://img.kancloud.cn/6c/63/6c63d31e4a2748186d441870dce73271_1920x918.png) **可直接复制以下内容** location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; } } **配置h5访问(Nginx环境)** H5端 location /h5{      if (!-e $request\_filename) {      rewrite ^/(.\*) /h5/index.html last;      break;      }     } ### 11.配置完之后就可以访问了 ![](https://img.kancloud.cn/35/ad/35ad3b8717d619fe55def2ccfbf27504_1399x633.png) ### 12.配置完,以下几种情况,需**重新编译**。在线升级后,如果是默认部署,则需点击重新编译;SSL证书变更后,由于http协议变更,则需点击重新编译 ![](https://img.kancloud.cn/d5/08/d508365bb5f25bd9add56b8d8632771b_1920x936.png)