当前位置:首页>Linux>macOS运行Linux!2.0万Star的Lima,轻量级容器虚拟机

macOS运行Linux!2.0万Star的Lima,轻量级容器虚拟机

  • 2026-03-23 20:13:13
macOS运行Linux!2.0万Star的Lima,轻量级容器虚拟机
今天介绍的 Lima,是专为macOS打造的Linux虚拟机工具。基于QEMU,支持containerd,完美适配M1/M2芯片,在GitHub上获得 2.0万Star,是Docker Desktop的最佳替代方案。

项目简介

Lima(Linux on Mac)是一个开源的Linux虚拟机管理工具,专为macOS设计。通过QEMU虚拟化技术运行Linux,内置containerd支持,可以直接运行Docker容器,资源占用比Docker Desktop低50%以上。

核心优势

  • 🚀 轻量高效 - 内存占用<500MB,启动仅需5秒
  • 🍎 完美适配 - 原生支持Intel和Apple Silicon
  • 🐳 容器友好 - 内置containerd,兼容Docker命令
  • 🔧 灵活配置 - YAML配置文件,自定义虚拟机参数
  • 🆓 完全免费 - Apache 2.0协议,无商业限制
  • 🌐 多发行版 - Ubuntu、Alpine、Debian等开箱即用

项目地址:https://github.com/lima-vm/lima
官方网站:https://lima-vm.io
官方文档:https://lima-vm.io/docs

核心特性

特性
说明
优势
轻量虚拟化
基于QEMU,最小化资源消耗
内存占用仅Docker Desktop的1/4
文件共享
macOS目录自动挂载到VM
无缝访问本地文件
端口转发
自动映射Linux端口到macOS
localhost直接访问容器服务
containerd集成
内置容器运行时
无需单独安装Docker
多实例管理
同时运行多个Linux VM
隔离不同开发环境
快照恢复
虚拟机状态快照
快速回滚到之前状态

快速上手

安装Lima

# macOS使用Homebrew安装
brew install lima

# 验证安装
limactl --version

# 启动默认Ubuntu虚拟机
limactl start

# 进入虚拟机
lima
# 或
limactl shell default

第一个容器

# Lima内置了nerdctl(containerd的Docker兼容CLI)

# 启动虚拟机
limactl start

# 运行容器
lima nerdctl run -d -p 8080:80 nginx

# 在macOS浏览器访问
open http://localhost:8080

# 查看容器
lima nerdctl ps

# 停止容器
lima nerdctl stop <container-id>

使用Docker命令

# Lima可以完全兼容Docker命令

# 方式1: 使用别名
alias docker="lima nerdctl"
docker run hello-world
docker ps
docker images

# 方式2: 使用Docker模板
limactl start --name=docker template://docker

# 现在可以直接用docker命令
docker run -d -p 3000:3000 node:18

功能详解

1. 自定义虚拟机配置

# 创建自定义配置文件: ~/.lima/dev/lima.yaml

vmType: "qemu"
os: "Linux"
arch: "x86_64"  # 或 "aarch64" (M1/M2)

# 系统镜像
images:
  - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
    arch: "x86_64"

# CPU和内存
cpus: 4
memory: "8GiB"
disk: "100GiB"

# 目录挂载
mounts:
  - location: "~"
    writable: true
  - location: "/tmp/lima"
    writable: true

# 端口转发
portForwards:
  - guestPort: 80
    hostPort: 8080
  - guestPort: 3000
    hostPort: 3000

# 容器运行时
containerd:
  system: true
  user: false

# 启动脚本
provision:
  - mode: system
    script: |
      #!/bin/bash
      apt-get update
      apt-get install -y build-essential git vim

使用自定义配置:

limactl start --name=dev ~/dev/lima.yaml

2. 多发行版支持

# Ubuntu(默认)
limactl start

# Alpine Linux(超轻量)
limactl start --name=alpine template://alpine

# Debian
limactl start --name=debian template://debian

# Fedora
limactl start --name=fedora template://fedora

# Arch Linux
limactl start --name=arch template://archlinux

# 查看所有模板
limactl start --list-templates

3. 虚拟机管理

# 列出所有虚拟机
limactl list

# 启动虚拟机
limactl start <name>

# 停止虚拟机
limactl stop <name>

# 删除虚拟机
limactl delete <name>

# 进入虚拟机Shell
limactl shell <name>

# 在虚拟机中执行命令
limactl shell <name> uname -a

# 查看虚拟机信息
limactl show-ssh <name>

4. 文件共享

# macOS文件自动挂载到Lima虚拟机

# 在macOS创建文件
echo"Hello from macOS" > ~/test.txt

# 在Lima中访问
lima cat ~/test.txt
# 输出: Hello from macOS

# 在Lima中创建文件
lima "echo 'Hello from Lima' > ~/from-lima.txt"

# 在macOS中查看
cat ~/from-lima.txt
# 输出: Hello from Lima

# 挂载位置:
# macOS ~/  → Lima ~/
# macOS /tmp/lima → Lima /tmp/lima

实战案例

案例1:替代Docker Desktop开发

# 创建Docker兼容环境

# 1. 启动Docker模板
limactl start --name=docker template://docker

# 2. 设置别名
echo'alias docker="lima nerdctl"' >> ~/.zshrc
echo'alias docker-compose="lima nerdctl compose"' >> ~/.zshrc
source ~/.zshrc

# 3. 使用Docker命令
docker run -d \
  --name postgres \
  -e POSTGRES_PASSWORD=secret \
  -p 5432:5432 \
  postgres:14

# 4. 连接数据库(从macOS)
psql -h localhost -U postgres

# 5. 运行Docker Compose项目
cd your-project
docker-compose up -d

# 性能对比:
# Docker Desktop: 内存2.5GB, CPU 15%
# Lima + nerdctl: 内存800MB, CPU 5%
# 节省70%内存!

案例2:多环境开发

# 同时运行多个独立的开发环境

# Python开发环境
cat > python-dev.yaml <<EOF
images:
  - location: "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
cpus: 2
memory: "4GiB"
provision:
  - mode: system
    script: |
      apt-get update
      apt-get install -y python3.10 python3-pip
EOF
limactl start --name=python python-dev.yaml

# Node.js开发环境
cat > node-dev.yaml <<EOF
images:
  - location: "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
cpus: 2
memory: "4GiB"
provision:
  - mode: system
    script: |
      curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
      apt-get install -y nodejs
EOF
limactl start --name=node node-dev.yaml

# Go开发环境
limactl start --name=go template://alpine
limactl shell go apk add go

# 在不同环境中工作
limactl shell python python3 --version  # Python 3.10
limactl shell node node --version       # Node.js 18.x
limactl shell go go version             # Go latest

案例3:Kubernetes本地开发

# Lima + k3s 搭建本地Kubernetes

# 1. ��建k8s配置
cat > k8s.yaml <<EOF
images:
  - location: "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
cpus: 4
memory: "8GiB"
disk: "50GiB"
provision:
  - mode: system
    script: |
      curl -sfL https://get.k3s.io | sh -
      mkdir -p /home/${USER}/.kube
      sudo cp /etc/rancher/k3s/k3s.yaml /home/${USER}/.kube/config
      sudo chown ${USER} /home/${USER}/.kube/config
EOF

# 2. 启动虚拟机
limactl start --name=k8s k8s.yaml

# 3. 配置kubectl(在macOS)
limactl shell k8s cat ~/.kube/config > ~/.kube/lima-k8s-config
export KUBECONFIG=~/.kube/lima-k8s-config

# 4. 部署应用
kubectl create deployment nginx --image=nginx
kubectl expose deployment nginx --port=80 --type=NodePort

# 5. 访问服务
kubectl get svc nginx
# 通过NodePort访问

案例4:CI/CD测试环境

# 在Lima中测试Docker镜像构建

# 1. 创建测试项目
mkdir test-app && cdtest-app
cat > Dockerfile <<EOF
FROM node:18-alpine
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
CMD ["node""server.js"]
EOF

# 2. 在Lima中构建
lima nerdctl build -t test-app:latest .

# 3. 运行测试
lima nerdctl run --rm test-app:latest npm test

# 4. 清理
lima nerdctl rmi test-app:latest

# 优势:
# - 不污染macOS本地环境
# - 完全隔离的测试环境
# - 快速创建和销毁

对比分析

方案
内存占用
启动速度
M1支持
免费
易用性
适用场景
Lima
<500MB
5秒
✅ 原生
✅ 是
⭐⭐⭐⭐
轻量开发
Docker Desktop
2-3GB
20秒
✅ 是
⚠️ 企业收费
⭐⭐⭐⭐⭐
企业开发
Multipass
1GB
10秒
✅ 是
✅ 是
⭐⭐⭐
通用VM
Colima
800MB
8秒
✅ 是
✅ 是
⭐⭐⭐⭐
Docker替代
Rancher Desktop
1.5GB
15秒
✅ 是
✅ 是
⭐⭐⭐
K8s开发
VirtualBox
2GB+
30秒+
❌ 否
✅ 是
⭐⭐
传统VM

Lima优势

  • ✅ 资源占用最低,性能最优
  • ✅ 完美支持Apple Silicon
  • ✅ 配置灵活,可高度定制
  • ✅ 完全免费开源
  • ✅ 同时支持容器和虚拟机

何时选其他方案

  • 需要GUI界面 → Docker Desktop
  • 只需容器 → Colima
  • 需要Windows VM → Multipass
  • 专注K8s → Rancher Desktop

最佳实践

1. 优化启动速度

# lima.yaml
# 使用更小的镜像
images:
  - location: "https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/cloud/alpine-virt-3.18.0-x86_64.qcow2"

# 减少资源分配
cpus: 2
memory: "2GiB"
disk: "20GiB"

# 禁用不需要的功能
containerd:
  system: false  # 如果不用容器

2. 资源限制

# 为不同用途创建不同大小的VM

# 轻量测试环境(1核1GB)
limactl start --name=test --cpus=1 --memory=1 template://alpine

# 开发环境(4核8GB)
limactl start --name=dev --cpus=4 --memory=8

# CI环境(2核4GB)
limactl start --name=ci --cpus=2 --memory=4

3. 自动化脚本

#!/bin/bash
# setup-lima.sh - 一键配置Lima开发环境

# 安装Lima
brew install lima

# 创建Docker环境
limactl start --name=docker template://docker

# 设置别名
cat >> ~/.zshrc <<'EOF'
alias docker="lima nerdctl"
alias docker-compose="lima nerdctl compose"
EOF

# 启动常用容器
lima nerdctl run -d --name postgres -e POSTGRES_PASSWORD=dev -p 5432:5432 postgres:14
lima nerdctl run -d --name redis -p 6379:6379 redis:alpine
lima nerdctl run -d --name mongo -p 27017:27017 mongo:6

echo"Lima开发环境配置完成!"
echo"运行 'source ~/.zshrc' 激活别名"

4. 备份和迁移

# 导出虚拟机配置
limactl show-ssh dev > dev-config.txt

# 备份虚拟机磁盘
cp ~/.lima/dev/diffdisk ~/.lima-backups/dev-$(date +%Y%m%d).qcow2

# 恢复虚拟机
limactl delete dev
cp ~/.lima-backups/dev-20240115.qcow2 ~/.lima/dev/diffdisk
limactl start dev

5. 网络配置

# 高级网络配置
networks:
  # 使用用户模式网络(默认)
  - lima: user-v2

# 或使用socket_vmnet(需要sudo权限,性能更好)
networks:
  - lima: socket_vmnet
    socketVMNet:
      macAddress: "52:55:55:12:34:56"

# 端口转发规则
portForwards:
  - guestPort: 80
    hostPort: 8080
    proto: tcp
  - guestPort: 443
    hostPort: 8443
    proto: tcp
  - guestPortRange: [8000, 9000]
    hostPortRange: [8000, 9000]

总结

Lima作为macOS上最轻量的Linux虚拟机方案,凭借其:

  • 🚀 超轻量 - 内存<500MB,启动仅5秒
  • 🍎 完美适配 - Intel和M1/M2原生支持
  • 🐳 容器友好 - 内置containerd,兼容Docker
  • 🔧 高度可定制 - YAML配置,灵活强大
  • 🆓 完全免费 - 开源无限制
  • 🌐 多发行版 - Ubuntu/Alpine/Debian开箱即用

已成为Docker Desktop的最佳替代方案!

适合你的场景

  • macOS开发者需要运行Linux容器
  • Docker Desktop太重或需要付费
  • M1/M2用户需要原生ARM支持
  • 需要多个隔离的开发环境
  • CI/CD需要轻量虚拟化方案

不要再忍受Docker Desktop的臃肿和费用!Lima给你更快、更轻、更自由的Linux虚拟化体验!

项目地址:https://github.com/lima-vm/lima
官方文档:https://lima-vm.io/docs
快速开始:https://lima-vm.io/docs/getting-started
模板仓库:https://github.com/lima-vm/lima/tree/master/examples

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 13:18:03 HTTP/2.0 GET : https://f.mffb.com.cn/a/482267.html
  2. 运行时间 : 0.154853s [ 吞吐率:6.46req/s ] 内存消耗:4,736.94kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=cee7d7982430f8398023f760def00b13
  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.000512s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000593s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000274s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003734s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000551s ]
  6. SELECT * FROM `set` [ RunTime:0.016412s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000664s ]
  8. SELECT * FROM `article` WHERE `id` = 482267 LIMIT 1 [ RunTime:0.005517s ]
  9. UPDATE `article` SET `lasttime` = 1774588683 WHERE `id` = 482267 [ RunTime:0.003781s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.004241s ]
  11. SELECT * FROM `article` WHERE `id` < 482267 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.006149s ]
  12. SELECT * FROM `article` WHERE `id` > 482267 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004829s ]
  13. SELECT * FROM `article` WHERE `id` < 482267 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002366s ]
  14. SELECT * FROM `article` WHERE `id` < 482267 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.003787s ]
  15. SELECT * FROM `article` WHERE `id` < 482267 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.012966s ]
0.156433s