当前位置:首页>Linux>Thingsboard物联网平台基于Linux与Docker部署-运行:自定义开发与定制的jar包

Thingsboard物联网平台基于Linux与Docker部署-运行:自定义开发与定制的jar包

  • 2026-03-29 18:27:01
Thingsboard物联网平台基于Linux与Docker部署-运行:自定义开发与定制的jar包

准备

linux服务器:首先准备linux服务器,买的阿里云套餐99元/年,配置:2核2G。有个Linux服务器随便折腾。

整体部署思路

由于需要在本地修改代码然后部署,推荐采用 “本地开发 + Docker镜像构建 + 服务器部署” 的流程

操作步骤

  1. 登陆服务器
  2. 部署docker并配置
  3. 部署postgresql镜像,并设置用户名、密码
  4. 部署thingsboard最新版本镜像
  5. 启动thingsboard镜像,并查询日志,查看镜像版本。
  6. 根据查看的镜像版本,去github上下载源码。
  7. 修改源码,并编译完成。
  8. 把编译完成的boot.jar 上传到linux服务器,并cp到thingsboard容器里面。
  9. 重启thingsboard镜像。
  10. 完成自定义代码部署到Linux服务器,通过docker部署。

详细指导

部署docker

添加 Docker 软件源

ounter(lineounter(lineounter(line# 添加 Docker CE 仓库sudo wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.cloud.aliyuncs.com/docker-ce/linux/centos/docker-ce.reposudo sed -i 's|https://mirrors.aliyun.com|http://mirrors.cloud.aliyuncs.com|g' /etc/yum.repos.d/docker-ce.repo

安装兼容插件和 Docker

ounter(lineounter(lineounter(lineounter(lineounter(line# 安装 dnf 源兼容插件(Alibaba Cloud Linux 3 专用)sudo dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus# 安装 Docker 及相关组件sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

启动 Docker 并设置开机自启

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 启动 Docker 服务sudo systemctl start docker# 设置开机自启sudo systemctl enable docker# 验证安装docker --version

配置镜像加速器(重要)

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 创建配置目录(如果不存在)sudo mkdir -p /etc/docker# 配置镜像加速器sudo tee /etc/docker/daemon.json <<-'EOF'{  "registry-mirrors": [    "https://docker.m.daocloud.io",    "https://dockerproxy.com",    "https://docker.nju.edu.cn",    "https://mirror.ccs.tencentyun.com"  ]}EOF# 重启 Docker 使配置生效sudo systemctl daemon-reloadsudo systemctl restart docker# 确认配置生效docker info | grep -A 5 "Registry Mirrors"

防火墙配置

ounter(lineounter(line# 查看防火墙状态sudo firewall-cmd --state

如果防火墙是开启状态(running),需要开放 ThingsBoard 需要的端口:

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 开放 ThingsBoard 需要的端口sudo firewall-cmd --permanent --add-port=8080/tcp   # Web界面sudo firewall-cmd --permanent --add-port=1883/tcp   # MQTTsudo firewall-cmd --permanent --add-port=7070/tcp   # HTTP APIsudo firewall-cmd --permanent --add-port=5683-5688/udp  # CoAP# 重新加载防火墙规则sudo firewall-cmd --reload# 验证规则已添加sudo firewall-cmd --list-ports

⚠️ 重要提醒:如果你的防火墙处于关闭状态(not running),可以跳过上述步骤。但无论防火墙状态如何,都必须去阿里云控制台配置安全组开放对应端口,这是云服务器的第一道防线

部署 PostgreSQL(轻量版)

2GB 内存的服务器必须使用独立数据库并限制内存

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 创建数据目录mkdir -p ~/thingsboard/postgres-data# 启动 PostgreSQL 容器(限制 512MB 内存)docker run -d \  --name postgres-tb \  --restart=unless-stopped \  --memory=512m \  --memory-swap=512m \  -e POSTGRES_PASSWORD=postgres \  -e POSTGRES_DB=thingsboard \  -p 5432:5432 \  -v ~/thingsboard/postgres-data:/var/lib/postgresql/data \  postgres:13-alpine# 确认 PostgreSQL 启动成功docker logs postgres-tb# 重启[root@iZ2zecdujvo7d47zy191u4Z ~]# docker restart postgres-tbpostgres-tb# 修改密钥[root@iZ2zecdujvo7d47zy191u4Z ~]# docker exec -it postgres-tb /bin/bash6b527c7ad78a:/# psql -U postgres -c "ALTER USER postgres WITH PASSWORD 'postgres';"ALTER ROLE6b527c7ad78a:/# exitexit

💡 密码说明:上面的密码 postgres 是示例,建议换成自己的强密码并记好。

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 1. 进入 PostgreSQL 容器docker exec -it postgres-tb /bin/bash# 2. 在容器内修改密码psql -U postgres -c "ALTER USER postgres WITH PASSWORD 'tb_password_123';"# 3. 退出容器exit# 4. 重启 PostgreSQL 容器docker restart postgres-tb

部署 ThingsBoard

创建数据目录

ounter(lineounter(lineounter(lineounter(lineounter(linemkdir -p ~/thingsboard/data ~/thingsboard/logs# 设置正确权限(ThingsBoard 容器内使用 uid 799 运行)sudo chown -R 799:799 ~/thingsboard/datasudo chown -R 799:799 ~/thingsboard/logs

获取宿主机内网 IP

ounter(lineounter(line# 查看内网 IP(通常是 eth0 或 eth1 网卡的地址)ip addr show | grep inet | grep -v 127.0.0.1

记下内网 IP(类似 172.31.x.x 或 192.168.x.x),后面配置会用到。 案例

ounter(line[root@iZ2zecdujvo7d47zy191u4Z ~]# ip addr show | grep inet | grep -127.0.0.1 inet6 ::1/128 scope host inet 172.17.144.61/20 brd 172.17.159.255 scope global dynamic noprefixroute eth0 inet6 fe80::216:3eff:fe59:948f/64 scope link inet 172.18.0.1/16 brd 172.18.255.255 scope global docker0

根据你提供的输出,内网IP是 172.17.144.61(对应 eth0 网卡)。

以下是详细说明:

  • 172.17.144.61/20:这是一个 A类私有地址(实际属于RFC 1918定义的B类地址段 172.16.0.0/12),通常用于云服务器(如阿里云)的内网通信。

  • 172.18.0.1/16:这是 Docker 容器虚拟网桥docker0 的IP,属于虚拟内网地址,用于宿主机与容器之间的通信,不算作服务器的“主内网IP”。

  • inet6 ::1 和 fe80:::分别是IPv6的本地回环地址和链路本地地址,不属于传统意义上的内网IPv4地址

启动 ThingsBoard 容器(内存限制版)

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 启动docker run -d \  --name thingsboard \  --restart=unless-stopped \  --memory=768\  --memory-swap=768\  -p 8080:8080 \  -p 1883:1883 \  -p 7070:7070 \  -p 5683-5688:5683-5688/udp \  -e SPRING_DATASOURCE_URL=jdbc:postgresql://<内网IP>:5432/thingsboard \  -e SPRING_DATASOURCE_USERNAME=postgres \  -e SPRING_DATASOURCE_PASSWORD=postgres \  -e TB_QUEUE_TYPE=in-memory \  -e TB_GATEWAY_DASHBOARD_SYNC_ENABLED=false \  -e HTTP_BIND_PORT=8080 \  -e HTTP_BIND_ADDRESS=0.0.0.0 \  -v ~/thingsboard/data:/data \  -v ~/thingsboard/logs:/var/log/thingsboard \  thingsboard/tb-postgres:latest# 启动docker run -d \  --name thingsboard \  --restart=unless-stopped \  --memory=768\  --memory-swap=768\  -p 8080:8080 \  -p 1883:1883 \  -p 7070:7070 \  -p 5683-5688:5683-5688/udp \  -e SPRING_DATASOURCE_URL=jdbc:postgresql://172.17.144.61:5432/thingsboard \  -e SPRING_DATASOURCE_USERNAME=postgres \  -e SPRING_DATASOURCE_PASSWORD=postgres \  -e TB_QUEUE_TYPE=in-memory \  -e TB_GATEWAY_DASHBOARD_SYNC_ENABLED=false \  -e HTTP_BIND_PORT=8080 \  -e HTTP_BIND_ADDRESS=0.0.0.0 \  -v ~/thingsboard/data:/data \  -v ~/thingsboard/logs:/var/log/thingsboard \  thingsboard/tb-postgres:latest# 停止docker stop thingsboard# 重启docker restart thingsboard# 删除镜像docker rm thingsboard

重点配置说明: TB_GATEWAY_DASHBOARD_SYNC_ENABLED=false  关闭github同步前端插件。

公网访问,不配置公网访问不了。 -e HTTP_BIND_PORT=8080 -e HTTP_BIND_ADDRESS=0.0.0.0 \

查看启动日志

实时打印:

ounter(lineounter(line# 查看日志,等待启动完成(可能需要 3-5 分钟)docker logs -f thingsboard

看到类似 Started Thingsboard in XXX seconds 的日志就说明成功了。

ounter(line2026-03-29 05:45:31,548 [main] INFO  o.t.s.ThingsboardServerApplication - Started ThingsBoard in 51 seconds

确认 Docker 容器是否正常运行

ounter(lineounter(lineounter(lineounter(lineounter(line# 查看容器状态docker ps -a | grep thingsboard# 查看容器日志,确认是否启动成功docker logs --tail 50 thingsboard

预期输出:

  • 容器状态应该是 Up(运行中)

  • 日志最后应该显示 Started ThingsboardServer in XXX seconds

如果容器状态是 Exited,说明容器启动失败,需要查看错误日志。

检查容器端口是否正常监听

ounter(lineounter(lineounter(lineounter(lineounter(line# 查看 8080 端口是否在监听状态netstat -tlnp | grep 8080# 或者用 ss 命令ss -tlnp | grep 8080

预期输出:

ounter(linetcp6       0      0 :::8080                 :::*                    LISTEN      12345/docker-proxy

在服务器本地测试(绕过网络问题) 这一步可以确认服务本身是否正常,而不是被外部网络拦截:

ounter(lineounter(line# 在服务器上用 curl 测试本地的 8080 端口curl -I http://localhost:8080

查看容器状态和日志

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 1. 查看容器运行状态docker ps -a | grep thingsboard# 2. 查看完整的容器日志(重点关注错误)docker logs thingsboard 2>&1 | tail -100# 3. 查看容器内进程docker exec thingsboard ps aux

执行以下命令查看详细错误

ounter(lineounter(lineounter(lineounter(lineounter(line# 查看 ThingsBoard 容器的完整日志(重点关注错误和异常)docker logs thingsboard 2>&1 | grep -E "ERROR|Exception|Caused by|Failed|Unable" | tail -50# 如果没有错误信息,查看最后 100 行完整日志docker logs thingsboard --tail 100

查看启动日志确认启动的版本

ounter(lineounter(lineounter(lineounter(linedocker logs thingsboard 2>&1 | grep -E "version" | tail -50# 结果2026-03-29 05:45:17,782 [main] INFO  o.t.s.c.SystemInfoController - System build info: {"version":"4.2.1.1","artifact":"application","name":"ThingsBoard Server Application","type":"CE"}

确认版本:4.2.1.1

安全组配置(关键!)

6.1 操作步骤

  1. 登录阿里云控制台 → 云服务器 ECS

  2. 找到你的实例,点击实例 ID 进入详情页

  3. 点击左侧「安全组」→ 点击安全组 ID

  4. 点击「入方向」→ 「手动添加」

  5. 添加以下规则: ![[Pasted image 20260329132223.png]]

访问验证

浏览器打开:http://你的服务器公网IP:8080

默认账号:

  • 邮箱:tenant@thingsboard.org

  • 密码:tenant

部署本地修改的 ThingsBoard

方式一:直接替换容器内的文件

ounter(lineounter(lineounter(lineounter(lineounter(line# 把修改过的 jar 包复制到容器中docker cp /本地路径/your-modified.jar thingsboard:/usr/share/thingsboard/bin/thingsboard.jar# 重启容器docker restart thingsboard
ounter(linedocker cp ./thingsboard-4.3.0.1-boot.jar thingsboard:/usr/share/thingsboard/bin/thingsboard.jar

方式二:构建自定义镜像

在本地创建 Dockerfile

ounter(lineounter(lineFROM thingsboard/tb-postgres:latestCOPY ./your-modified-thingsboard.jar /usr/share/thingsboard/bin/thingsboard.jar

本地构建并推送

ounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(lineounter(line# 构建镜像docker build -t my-thingsboard:latest .# 导出镜像docker save my-thingsboard:latest -o my-thingsboard.tar# 上传到服务器scp my-thingsboard.tar root@你的服务器IP:/root/# 在服务器上导入docker load -i /root/my-thingsboard.tar# 用新镜像启动(先停止并删除旧容器)docker stop thingsboard && docker rm thingsboarddocker run -d \  --name thingsboard \  ...(其他参数同上)...  my-thingsboard:latest

常用管理命令速查

操作
命令
查看容器状态
docker ps -a
查看资源占用
docker stats
查看 ThingsBoard 日志
docker logs -f thingsboard
重启 ThingsBoard
docker restart thingsboard
停止 ThingsBoard
docker stop thingsboard
进入容器调试
docker exec -it thingsboard /bin/bash
查看防火墙规则
sudo firewall-cmd --list-all
查看 Docker 镜像
docker images

注意事项

  1. 内存限制是关键:2GB 内存跑 ThingsBoard 属于极限配置,数据库和主容器都必须限制内存。如果容器频繁被 kill,适当降低内存限制。

  2. 不要用 Cassandra:官方文档推荐 PostgreSQL 而非 Cassandra,后者内存占用更高。

  3. 开发/演示用途:这套配置只适合开发测试,生产环境建议升级到 4GB 以上内存。

  4. 防火墙两层检查:服务无法访问时,按顺序检查:安全组 → 系统防火墙(firewalld) → 容器是否运行。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-30 01:32:47 HTTP/2.0 GET : https://f.mffb.com.cn/a/483875.html
  2. 运行时间 : 0.223224s [ 吞吐率:4.48req/s ] 内存消耗:4,752.93kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=a44efff713c9cd075a0255c101e8771e
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000952s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001465s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000754s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000779s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001461s ]
  6. SELECT * FROM `set` [ RunTime:0.000666s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001578s ]
  8. SELECT * FROM `article` WHERE `id` = 483875 LIMIT 1 [ RunTime:0.014514s ]
  9. UPDATE `article` SET `lasttime` = 1774805567 WHERE `id` = 483875 [ RunTime:0.003996s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000741s ]
  11. SELECT * FROM `article` WHERE `id` < 483875 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.003292s ]
  12. SELECT * FROM `article` WHERE `id` > 483875 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002954s ]
  13. SELECT * FROM `article` WHERE `id` < 483875 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.004507s ]
  14. SELECT * FROM `article` WHERE `id` < 483875 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004059s ]
  15. SELECT * FROM `article` WHERE `id` < 483875 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.010958s ]
0.227025s