多语言SSC菠菜系统专业版VUE前端+模板采集优化

环境要求

  • PHP 8.0

  • MySQL 5.6

  • PHP扩展需开启:redisswoole

  • 禁用函数需全部关闭

后台信息

  • 账号:admin

  • 密码:mitaobc

后端配置

进入 api 文件夹,全局搜索:

https://www.mitaobc.com

并替换为你自己的 API 域名。

H5、Admin、Agent 三个端口需分别绑定独立域名。

常见问题

  • 若出现玩法缺失情况:

    1. 在数据库目录下新建 redis 文件夹,并将 0_db_20230130_001430.rdb 文件放入,以恢复 redis 缓存;

    2. 或者在 redis 数据库中执行教程提供的键值对操作。

启动命令

在终端根目录执行以下命令:

cd /www/wwwroot/cp/api
php think watching

cd /www/wwwroot/cp/api
php think watching start

cd /www/wwwroot/cp/api
php think import start

其他说明

跨域问题可能会遇到,请根据自身环境处理。

Nginx 配置示例

可在后台配置文件中加入以下规则:

location ~/(control|storage) {
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
}

location ~/(dock|storage) {
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
}

location ~/(invite|storage) {
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
}

隐藏内容
本内容需权限查看
  • 普通用户: 不可购买
  • VIP会员: 免费
  • 永久会员: 免费
已有24人解锁查看

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。