多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 宝塔面板安装 参考官方文档安装宝塔面板:https://www.bt.cn/ <br> ## 软件安装 首次进入,使用宝塔推荐的软件。建议使用PHP7.2、MySQL5.7。 ![](https://img.kancloud.cn/0a/39/0a39aba14c8c907d767598b12192c445_1698x1784.png) ![](https://img.kancloud.cn/3d/54/3d542fd9f3a0cf1dc0bf31b7e9ba4352_1728x1742.png) <br> ## 添加站点 ![](https://img.kancloud.cn/a0/19/a0192750623c42d33bb3d2ace527f10f_1846x1810.png) <br> ## 上传代码 1.上传压缩包并解压。 ![](https://img.kancloud.cn/8b/1f/8b1f9be9bd6e41bf075fb5ac377a379a_2954x1438.png) <br> 2.复制/www/wwwroot/likeshopv2/server/下的所有文件和目录。 ![](https://img.kancloud.cn/b3/3d/b33dcb88d7ce14bad0753c9451d2a648_2788x1540.png) <br> 3.粘贴到到/www/wwwroot/likeshop.*\*\*\*\*.cn目录中。 ![](https://img.kancloud.cn/07/a1/07a1396133c1912a8e6319a8415075ed_2994x1882.png) ![](https://img.kancloud.cn/7a/e8/7ae8bc1f7890186866bab64eb33da255_2572x1712.png) <br> 3.注意/www/wwwroot/likeshop.*****.cn目录权限为755,所有者为www,**给server/runtime和server/public/uploads目录777权限!!!** ![](https://img.kancloud.cn/0e/eb/0eeb0183fca68dbb02bebe57e2bc1947_2956x1278.png) <br> ## 设置站点 1.返回网站菜单,点击设置。 ![](https://img.kancloud.cn/34/54/34549514fa708b5bab909d29224ae06a_3046x1504.png) <br> 2.网站运行目录设置,选择/public,记得点保存。 ![](https://img.kancloud.cn/ef/56/ef569e14dcd5e33eb5565520bdc14f2c_2058x1712.png) <br> 3.为静态设置,选择thinkphp,记得点保存。 ![](https://img.kancloud.cn/5e/b6/5eb64fc9962525d89247f4c3b9282111_2292x1738.png) <br> ## 配置定时任务 在宝塔面板环境下,设置如下,脚本内容: ` php /www/wwwroot/likeshop.*****.cn/server/think crontab` www/wwwroot/likeshop.*****.cn/server为项目服务端所在的绝对路径。 ![](https://img.kancloud.cn/b7/ea/b7ea62541f7bad713584ab11a98447c2_1886x1486.png) <br>