跳到内容
当前位置:首页>下载方法>查修改时间只会 ls -l?一个文件的四种时间四种查法

查修改时间只会 ls -l?一个文件的四种时间四种查法

  • 2026-11-28 09:05:05
查修改时间只会 ls -l?一个文件的四种时间四种查法
LINUX · 文件时间2026.10

查修改时间只会 ls -l?

一个文件的四种时间

四种查法

stat · date · ls · httpie · find · touch · 时区坑 · 实战场景

 Linux 运维实战

TUTORIAL

📦 8 PARTS + CONCLUSION

👉 滑动

PART 01

三种时间戳

先分清查什么

PART 02

stat 全能

一次看全所有

PART 03

date -r 快查

一句话出结果

PART 04

ls 排序

按时间排队

PART 05

httpie 远程

查网页文件

PART 06

find 反查

按时间找文件

PART 07

touch 改时间

反过来造时间

PART 08

实战与踩坑

时区与日志

PART ///

写在最后

速查表与心法

排查线上问题时,最常被追问的一句话是

这个文件,最后一次被改动是什么时候?

「这配置谁改的?什么时候改的?」——查文件的修改时间是运维、开发、安全审计里最高频的动作之一。日志什么时候滚动的、备份脚本有没有真的跑、线上配置文件是不是被人动过,答案都藏在时间戳里。

本文从原文的四种方法出发(stat、date、ls -l、httpie),并向前补上「先分清查的是哪个时间」,向后延伸到「按时间找文件」「反过来改时间戳」「时区与日志实战」——把这一件事讲透。

01

PART

先搞清楚:你要查的是哪个时间

ATIME · MTIME · CTIME · BIRTH

很多人一上来就敲命令,却没意识到 Linux 里一个文件其实带着好几个互不相同的「时间」。查错对象,结论就完全跑偏了。

mtime(Modify)修改时间

文件内容最后一次被写入的时刻。写代码、改配置、追加日志,动的都是它。日常说的「修改日期」默认指这个。

atime(Access)访问时间

文件最后一次被读取的时刻。用 cat、less 看一眼就会更新。

ctime(Change)变更时间

文件元数据(权限、属主、硬链接数)最后一次变动的时刻。改内容时 ctime 也会跟着变,因为文件大小这个元数据也变了。

Birth 创建时间

文件诞生的时刻。注意:不是所有文件系统都支持,ext4、xfs 支持,很多场景下会显示成 -(就像原文输出里那样)。

最容易混的是 mtime 和 ctime:改内容两个都变,只改权限只有 ctime 变。排查「配置被改」看 mtime,排查「权限被谁动过」看 ctime。

现代 Linux 默认挂载常带 relatime 或 noatime 选项,atime 不会每次读取都更新(通常一天才更新一次,或直接关闭)。这也是为什么 atime 不能作为「谁看过这个文件」的可靠证据。

02

PART

stat:一次看全所有时间

STAT · FULL DETAIL

stat 是查看文件属性最全面的命令:最近一次访问与修改的时间、文件大小、inode、权限、属主一次全给。用法也最简单——命令后面直接跟文件名就行。

...bash

[root@localhost ~]# stat install.sh

 File: ‘install.sh’

 Size: 159    Blocks: 8   IO Block: 4096  regular file

Device: fd01h/64769d Inode: 2115734  Links: 1

Access: (0755/-rwxr-xr-x) Uid: (  0/  root)  Gid: (  0/  root)

Access: 2021-01-12 11:04:08.055028755 +0800

Modify: 2021-01-12 11:04:02.610016788 +0800

Change: 2021-01-12 11:04:02.612016793 +0800

Birth: -

— stat 完整输出:三个时间戳一目了然

从上面的输出可以看到文件的访问日期、修改日期、权限变更日期,以及其他一堆参数。注意末尾的 +0800 是时区偏移,排查跨机器问题时它是关键线索。

只要修改时间:-c %y

如果只希望查看文件的修改日期,而不想被其他信息淹没,加 -c 选项指定自定义格式即可。

...bash

[root@localhost ~]# stat -c %y install.sh

2021-01-12 11:04:02.610016788 +0800

— 只输出修改时间,干净到可以直接进脚本

-c 选项用于指定自定义格式代替默认输出,而 %y 标志表示上次修改时间。对于文件夹,语法完全不变——把文件名换成文件夹名即可。

扩展延伸:stat 常用格式化符号表

既然 -c 能自定义输出,那值得记住的就不止 %y 一个。下面这些是脚本里最常出现的一组。

符号
含义
典型用途
%y
修改时间(可读格式)
排查「内容何时被改」
%x
访问时间(可读格式)
看文件最近是否被读过
%z
状态变更时间
权限/属主何时被动过
%Y
修改时间的 Unix 秒
脚本里做时间比较与计算
%n
文件名
和时间拼成一行清单
%s
文件大小(字节)
时间 + 体积一起核对
%U / %G
属主名 / 属组名
确认是谁的文件
%a
八进制权限(如 755)
权限与变更一起审计

✦ 批量用法:一次列出一堆文件的时间

把 %n 和 %y 拼一起,配合通配符,就是一份干净的时间清单。

...bash

# 配置文件清单:文件名 + 修改时间,按名字排序

$ stat -c '%n %y' /etc/nginx/conf.d/*.conf

# 只想知道「多久之前」:%Y 配合 date 换算

$ echo $(( ($(date +%s) - $(stat -c %Y install.sh)) / 86400 )) 天前

03

PART

date -r:一句话出结果

DATE -R · QUICKEST

date 命令本职是显示当前日期。但当它与 -r 选项一起使用时,就能显示指定文件的最后修改时间。

...bash

[root@localhost ~]# date -r install.sh

Tue Jan 12 11:04:02 CST 2021

扩展延伸:date 的自定义输出

默认格式是英文星期开头,读起来有点绕。用 + 开头的格式串可以随你排版,写脚本落日志时尤其有用。

...bash

# 换成 yyyy-mm-dd HH:MM:SS,最通用

$ date -r install.sh '+%F %T'

2021-01-12 11:04:02

# 只要日期,做备份归档判断

$ date -r install.sh '+%Y%m%d'

20210112

# 转成 UTC 时间,跨时区排查用

$ TZ=UTC date -r install.sh

Tue Jan 12 03:04:02 UTC 2021

三种查法怎么选?想看全部信息用 stat,只想快速瞄一眼用 date -r,想顺带看权限和排序用 ls -l。前两者本质读的是同一个 mtime,只是输出详略不同。

04

PART

ls -l:看时间还能顺便排队

LS -LT · SORT BY TIME

ls -l 通常用于以长列表显示文件的其他信息,例如文件权限、所有者、大小和创建日期。如果再加上 -t 选项,就能按修改时间从新到旧排列——这是 ls 相比前两个命令最大的优势。

...bash

[root@localhost ~]# ls -lt

或者

[root@localhost ~]# ll -t

total 288

drwxr-xr-x. 2 root root  177 Oct 16 14:36 b

drwxr-xr-x. 2 root root  177 Oct 16 14:36 a

-rwxr-xr-x. 1 root root  119 Oct 15 19:20 backup_script.sh

-rwxr-xr-x. 1 root root   31 Oct 15 19:07 hello_script.sh

-rw-r--r--. 1 root root  227 Oct 13 16:39 content.txt

-rw-r--r--. 1 root root 277159 Oct 12 14:37 a.txt

drwxr-xr-x. 2 root root  195 Aug 6 14:12 Files

-rw-------. 1 root root  1284 Dec 29 2019 anaconda-ks.cfg

!时间显示有「两套规则」🕳

注意最后一行 Dec 29 2019:半年内的文件显示「月 日 时分」,超过半年的老文件则显示「月 日 年份」,时分被省掉了。想要始终看到完整时间,用下面的 --full-time。

扩展延伸:ls 的时间全家桶

ls 在时间这件事上其实藏着不少开关:换显示格式、切换时间类型、反转排序,都有对应的选项。

选项
作用
适用场景
-t
按 mtime 从新到旧排
「最近动了哪些文件」
-tr
反转,从旧到新
找「最久没被碰过的」
-u
改用 atime(访问时间)
看最近被读过什么
-c
改用 ctime(状态变更)
排查权限/属主变动
--full-time
显示完整时间含秒与时区
需要精确到秒的核对
--time-style
自定义时间格式串
统一输出给脚本解析
...bash

# 完整时间,含秒与时区,老文件也不省略

$ ls -l --full-time anaconda-ks.cfg

-rw-------. 1 root root 1284 2019-12-29 10:15:22.000000000 +0800 anaconda-ks.cfg

# 只要年月日时分,清爽对齐

$ ls -lt --time-style=+'%Y-%m-%d %H:%M'

# 最近被改动的前 5 个文件(排查最爱用的一条)

$ ls -lt | head -5

严谨说 ls -l 默认显示的其实是修改时间 mtime,不是创建时间。真正的创建时间(Birth)只有部分文件系统支持,要用 stat 才看得到,很多情况下还显示为「-」。

05

PART

httpie:查网页服务器上的文件

HTTPIE · REMOTE FILE

前面三种都是查本机文件。还有一种场景:文件不在你的机器上,而在别人的 web 服务器里。这时候可以用 httpie——一个 HTTP 命令行客户端工具,通常用于与 HTTP 服务器和 API 交互,也能检查驻留在 web 服务器上文件的修改时间。

第一步:安装 httpie

首先需要确保安装了 Python 的 pip 包管理工具,然后安装 httpie。在 Centos7 / RHEL7 中运行以下命令:

...bash

[root@localhost ~]# yum -y install python-pip

[root@localhost ~]# pip install --upgrade pip

[root@localhost ~]# pip install httpie

在 Ubuntu / Deepin / Debian 中运行以下命令安装,一行搞定:

...bash

$ sudo apt install httpie

第二步:只取响应头里的 Last-Modified

安装完成之后,查看 web 服务器上文件修改时间的语法如下:-h 表示只输出响应头(不下载正文),再用 grep 捞出时间字段。

...bash

http -h [url] | grep 'Last-Modified'

例如,从 www.fcant.com 网站查看一张 .png 格式图片的修改时间:

...bash

[root@localhost ~]# http -h https://www.fcant.com/wp-content/uploads/2020/06/6-1.png | grep -i 'Last-Modified'

Last-Modified: Fri, 05 Jun 2020 14:26:11 GMT

!GMT 不是你的本地时间 🕳

HTTP 响应头里的 Last-Modified 统一用 GMT。上面这行 GMT 14:26 换成北京时间是当天 22:26(GMT+8),别拿 GMT 直接和本地 ls 结果对账。

扩展延伸:不装 httpie 也能查

为了一个时间专门装个工具,在内网环境里往往不现实。其实 系统自带的 curl 和 wget 都能做同样的事,而且几乎所有机器都有。

...bash

# curl:-I 只取响应头,最通用

$ curl -sI https://www.fcant.com/.../6-1.png | grep -i 'last-modified'

# wget:--spider 只探测不下载,-S 打印响应头

$ wget --spider -S https://www.fcant.com/.../6-1.png 2>&1 | grep -i 'last-modified'

# 顺便确认远端资源有没有更新:本地缓存时间对比

$ curl -sI -H 'If-Modified-Since: Fri, 05 Jun 2020 14:26:11 GMT' URL | head -1

HTTP/1.1 304 Not Modified ← 返回 304 说明没变过

不是所有网站都返回 Last-Modified:CDN、动态生成的资源、部分对象存储可能只给 ETag 或干脆不给时间字段。查不到时先看有没有 ETag,再考虑用文件内容哈希对比。

06

PART

反过来问:哪些文件在这段时间被改过

FIND · BY TIME

前面都是「我知道文件名,去查它的时间」。实际排查更常见的是反向问题:昨晚到今早之间,这台机器上到底有哪些文件被改过? 这个活儿得交给 find。

定范围

从哪个目录开始找

→

定时间

多久之内 / 某个点之后

→

定动作

列出来还是处理掉

find 按时间查找的三段式思路

写法一:-mtime 按「天」粗筛

...bash

# 24 小时内被改过的文件

$ find /etc -type f -mtime -1

# 超过 7 天没动过的文件(清理候选)

$ find /var/log -type f -mtime +7

# 第 3 天那一整天(很少用,但要知道规则)

$ find /data -type f -mtime 3

-mtime -1 是「1 天之内」,+7 是「7 天之前」,减号表之内、加号表之前,不带符号是「正好第 N 天」。同理还有 -atime(访问)、-ctime(状态变更)、-mmin(按分钟)。

写法二:-newermt 精确到某个时刻

按天粗筛不够用时,-newermt 可以直接写一个具体时间点,排查「故障窗口内」最顺手。

...bash

# 今天凌晨 2 点之后被改动的文件

$ find / -xdev -type f -newermt '2026-10-20 02:00'

# 圈定一个区间:2 点到 5 点之间(配合 ! 取反)

$ find /etc -type f -newermt '2026-10-20 02:00' ! -newermt '2026-10-20 05:00'

# 「比某个文件更新」:以已知文件做参照

$ find /etc -type f -newer /etc/hosts

✦ 排查神器:一行导出「谁在什么时候被改」

find 的 -exec 直接调用 stat,就能输出带时间的清单,比逐个 stat 快得多。

...bash

$ find /etc -type f -mtime -1 -exec stat -c '%y %n' {} \; | sort

2026-10-20 03:12:07.112000000 +0800 /etc/nginx/nginx.conf

2026-10-20 04:40:51.880000000 +0800 /etc/hosts

全盘 find 时记得加 -xdev 限定不跨文件系统,否则会扫到 /proc、/sys 这些虚拟目录,既慢又会报一堆无关错误。

07

PART

touch:反过来,去造一个时间

TOUCH · MAKE TIME

既然能查,就自然要问:时间能不能改? 能,而且很容易——这就是 touch。它本职是「文件不存在就创建空文件,存在就刷新时间戳」,配合选项则可以把时间改成任意值。

...bash

# 文件不存在就创建,存在就把 atime/mtime 刷成当前

$ touch app.log

# 指定为某个具体时刻(-d 最直观)

$ touch -d '2021-01-12 11:04:02' install.sh

# 只改访问时间 -a / 只改修改时间 -m

$ touch -m -d '2026-10-01 00:00' install.sh

# 把 A 文件的时间原样复制给 B(-r 参照)

$ touch -r source.txt target.txt

touch 最正当的用途有两个:① 新建空文件占位(日志轮转、锁文件、脚本标记位);② 让依赖时间戳的工具按预期工作——比如 make 判断要不要重新编译、备份脚本判断要不要增量同步。

!时间戳不可信 🕳

正因为 touch 能随意改 mtime,时间戳在法律与安全事故取证中只能作为辅助线索,不能当作唯一证据。真要做审计,得上 auditd、文件完整性监控(如 AIDE)或版本控制系统。

顺带一提:ctime 是改不了的——任何一次 touch 都会让 ctime 变成「现在」。所以想看穿「有人偷偷改过时间」,就去比对 mtime 和 ctime:mtime 是过去某时刻、ctime 却是刚刚,基本可以断定动过手脚。

08

PART

实战场景与三个真实踩坑

REAL WORLD · PITFALLS

命令背下来只是第一步,真正拉开差距的是知道在什么场景下用哪一条。下面四个场景是运维日常里出现频率最高的。

CASE 01

「配置是不是被人改过?」

线上出问题,第一反应往往是查 Nginx、MySQL 的配置有没有被动过。正确姿势是stat 看 mtime 和 ctime 两个值:mtime 变了说明内容被改,只有 ctime 变了说明只是权限或属主被调过。

...bash

$ stat -c '修改:%y 变更:%z 属主:%U %n' /etc/nginx/nginx.conf

CASE 02

「日志到底有没有在写?」

服务假死时,最直接的判断就是看日志文件最后一次写入距现在多久。超过预期间隔就说明上游断了。

...bash

# 距今多少秒没写入了

$ echo $(( $(date +%s) - $(stat -c %Y app.log) ))

# 按时间倒序列出最近活跃的日志

$ ls -lt /var/log/*.log | head

CASE 03

「备份脚本真的跑了吗?」

定时任务最怕「静默失败」。检查备份产物的 mtime 是否落在今天,比翻 cron 日志快得多。

...bash

$ find /backup -name '*.tar.gz' -newermt 'today'

# 或者:超过 2 天没新备份就告警

$ [ -z "$(find /backup -name '*.tar.gz' -mtime -2)" ] && echo 备份异常

CASE 04

「清理多久没碰过的老文件」

磁盘告警时的标准动作。用 find + -mtime 圈出候选,先用 ls -l 预演一遍,确认无误再换 rm。

...bash

# 第一步:只看不删,确认清单

$ find /data/tmp -type f -mtime +30 -exec ls -lh {} \;

# 第二步:确认后真正删除

$ find /data/tmp -type f -mtime +30 -delete

三个真实踩坑

!坑一:时区对不上 🕳

本机 ls 显示北京时间、web 响应头是 GMT、容器里可能还是 UTC。跨机器比对前先 date 确认各自时区,或用 TZ=UTC 前缀统一换算,否则会得出「文件来自未来」的荒谬结论。

!坑二:scp / rsync 会重置时间 🕳

普通 scp 传过去的文件 mtime 会变成「到达时刻」,原时间丢失。要保留得用 scp -p 或 rsync -a。做迁移时这点非常关键。

!坑三:解压缩后时间全变了 🕳

tar 包解开后文件 mtime 默认会还原成打包时的原始时间,但用 zip、或者解压工具不同,结果就可能变成解压时刻。核对日志文件时间线时要留意这一点。

///

LAST

写在最后:一张表带走全部

CHEAT SHEET · SUMMARY

原文给了四种查看方法,我们顺着这条线往前补了「先分清哪个时间」,往后延了「反查、改写、实战」。最后收成一张表——按需取用,不必全背。

命令
一句话作用
最常用写法
stat
一次看全所有属性与时间
stat -c %y file
date -r
最快瞄一眼修改时间
date -r file
ls -lt
带权限并按时间排序
ls -lt | head
httpie
查 web 服务器上的文件
http -h URL | grep Last-Modified
curl -sI
不装工具查远程文件时间
curl -sI URL | grep -i last-modified
find
反查某段时间内被改的文件
find /etc -mtime -1
touch
反过来造/改一个时间
touch -d '2026-10-01 00:00' file

mtime 看内容,ctime 看权限,atime 仅供参考

三个时间戳各司其职,混用就会得出错误结论

三条心法

1

先想清楚查的是哪个时间,再决定敲哪条命令。问「配置被改」查 mtime,问「权限被改」查 ctime,这一步错了后面全白做。

2

单点查用 stat / date,批量查用 find。已知文件名就用前两个,要扫一片目录就交给 find,别反过来用 ls 一个个看。

3

时间戳可以被 touch 改写,mtime 是过去、ctime 却是刚刚时就要警惕。真要取证,别只靠时间戳。

查时间这件事,会用是基本功,用对才是经验

我是大乐学IT,喜欢把 Linux 里那些「好像会了但又说不清」的小知识点,掰开揉碎讲明白。如果你觉得今天这篇有收获,欢迎点赞、在看、转发三连,我们下篇见。

既然看到这里了,如果觉得有用,随手点个赞、在看、转发三连吧。

点赞
在看
转发

THANKS FOR READING

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