当前位置:首页>Linux>linux chgrp命令分享

linux chgrp命令分享

  • 2026-08-18 23:11:18
linux chgrp命令分享

一,什么是chgrp

https://man.he.net/man1/chgrp

chgrp 是 Linux/Unix 系统中的一个基础命令,全称是 Change Group(更改组)。它的主要作用是修改文件或目录的所属用户组(Group Ownership)

在 Linux 的权限管理机制中,每个文件和目录都归属于一个特定的“用户(User)”和一个特定的“用户组(Group)”。chgrp 就是专门用来调整“组”这一属性的工具。

二,参数

[root@localhost ~]# chgrp --help用法:chgrp [选项]... 用户组 文件...chgrp [选项]... --reference=参考文件 文件...功能描述:将每个指定文件的所属组更改为指定的“用户组”。如果使用 --reference 选项,则将文件的所属组更改为与“参考文件”的所属组相同。-c, --changes 类似于 verbose,但仅在发生更改时进行报告-f, --silent, --quiet 抑制大多数错误信息-v, --verbose 对每个处理的文件输出诊断信息    --dereference 影响每个符号链接所指向的目标文件(这是默认行为),而不是符号链接本身-h, --no-dereference 影响符号链接本身,而不是其指向的任何文件(仅在可以更改符号链接所有权的系统上有用)    --no-preserve-root 不对 '/' 进行特殊处理(默认行为)--preserve-root 在递归操作时,若对 '/' 进行操作则失败--reference=参考文件 使用参考文件的所属组,而不是指定一个用户组值-R, --recursive 递归地对文件和目录进行操作    当同时指定 -R 选项时,以下选项会修改遍历层级结构的方式。如果指定了多个选项,则只有最后一个生效。-H 如果命令行参数是指向目录的符号链接,则遍历该目录-L 遍历遇到的每一个指向目录的符号链接-P 不遍历任何符号链接(默认行为)--help 显示此帮助信息并退出--version 输出版本信息并退出示例:chgrp staff /u 将 /u 的所属组更改为 "staff"chgrp -hR staff /u 将 /u 及其子文件的所属组更改为 "staff"GNU coreutils 在线帮助:http://www.gnu.org/software/coreutils/完整文档请运行:info coreutils 'chgrp invocation'

三,补充

Linux 文件权限(rwx)速查表

维度
核心概念
说明
示例
基础权限
r (Read)
文件:可查看内容;目录:可列出文件名
cat file.txt
ls dir/
w (Write)
文件:可修改/删除内容;目录:可创建/删除文件
echo "text" > file.txt
touch dir/new.txt
x (Execute)
文件:可作为程序运行;目录:可进入该目录 (cd)
./script.sh
cd dir/
角色划分
u (User)
文件所有者(前3位)
rwx
g (Group)
文件所属组(中间3位)
r-x
o (Others)
其他用户(后3位)
r--
数字映射
r = 4
读权限
r--
 = 4
w = 2
写权限
-w-
 = 2
x = 1
执行权限
--x
 = 1
无权限 = 0
未分配权限
---
 = 0
高频组合
755
rwxr-xr-x
脚本/程序:所有者全权,其他人只读+执行
644
rw-r--r--
配置文件:所有者可读写,其他人只读
700
rwx------
私密目录/密钥:仅所有者可访问
777
rwxrwxrwx
全开放:极度危险,生产环境禁用
核心命令
查看权限
显示详细权限信息
ls -l filename
修改权限
设置文件或目录权限
chmod 755 filename
修改所有者
更改文件归属用户
chown user filename
修改所属组
更改文件归属用户组
chgrp group filename
同时修改
同时更改所有者和组
chown user:group filename

chown 与 chgrp 搭配使用速查表

操作需求
推荐命令
语法格式
示例
说明
仅修改所有者
chownchown 用户名 文件chown alice file.txt
将文件所有者改为 alice,所属组不变
仅修改所属组
chgrp
 或 chown
chgrp 组名 文件
chown :组名 文件
chgrp dev file.txt
chown :dev file.txt
两种写法效果完全相同,chown 写法更简洁
同时修改所有者和组
chownchown 用户名:组名 文件chown alice:dev file.txt
最常用写法,一次性完成双重修改
仅修改组(参照另一文件)
chgrp
 或 chown
chgrp --reference=参考文件 目标文件
chown --reference=参考文件 目标文件
chgrp --reference=a.txt b.txt
让目标文件的组与参考文件保持一致
递归修改目录(所有者+组)
chownchown -R 用户名:组名 目录chown -R alice:dev /var/www/
将目录下所有文件和子目录的归属全部更改
仅修改所有者,组变为登录组
chownchown 用户名: 文件chown alice: file.txt
注意冒号后留空,系统会自动将组设为 alice 的默认登录组

四,例子

1、修改单个文件的所属组场景:将普通文件 test2.m4 的所属组更改为 edu

[root@localhost bz]# chgrp edu test2.m4[root@localhost bz]# lltotal 12drwxr-xr-x 2 root root 4096 Jul  7 17:19 test-rw-r--r-- 1 root edu   299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root root  293 Jul  7 17:24 test2.m4.bz2

2、修改目录的所属组,场景:将目录 test 的所属组更改为 edu(仅修改目录本身,不包含内部文件)。

[root@localhost bz]# chgrp edu test[root@localhost bz]# lltotal 12drwxr-xr-x 2 root edu  4096 Jul  7 17:19 test-rw-r--r-- 1 root edu   299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root root  293 Jul  7 17:24 test2.m4.bz2

3、递归修改目录下所有内容(最常用)

[root@localhost bz]# ll testtotal 8-rw-r--r-- 1 root root 299 Jul  7 17:18 file.txt-rw-r--r-- 1 root root 299 Jul  7 17:19 new_filename.txt[root@localhost bz]# chgrp -R edu test[root@localhost bz]# ll testtotal 8-rw-r--r-- 1 root edu 299 Jul  7 17:18 file.txt-rw-r--r-- 1 root edu 299 Jul  7 17:19 new_filename.txt

4、 参考现有文件的组进行批量修改

[root@localhost bz]# chgrp --reference=test2.m4  test2.m4.bz2 [root@localhost bz]# lltotal 12drwxr-xr-2 root edu 4096 Jul  7 17:19 test-rw-r--r-- 1 root edu  299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root edu  293 Jul  7 17:24 test2.m4.bz2

5、同时修改多个文件

[root@localhost bz]# chgrp postgres test2.m4 test2.m4.bz2 [root@localhost bz]# lltotal 12drwxr-xr-x 2 root edu      4096 Jul  7 17:19 test-rw-r--r-- 1 root postgres  299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root postgres  293 Jul  7 17:24 test2.m4.bz2

6、显示修改过程(带详细反馈)

[root@localhost bz]# chgrp -c -R edu  test2.m4changed group of ‘test2.m4’ from postgres to edu[root@localhost bz]# lltotal 12drwxr-xr-x 2 root edu      4096 Jul  7 17:19 test-rw-r--r-- 1 root edu       299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root postgres  293 Jul  7 17:24 test2.m4.bz2

7、处理符号链接(软链接)默认情况下,chgrp 会修改符号链接指向的目标文件的组。如果你只想修改符号链接本身的组(需系统支持),可以加上 -h 参数

[root@localhost bz]# ln -s  test2.m4  test3.m4[root@localhost bz][root@localhost bz]# lltotal 12drwxr-xr-x 2 root edu      4096 Jul  7 17:19 test-rw-r--r-- 1 root edu       299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root postgres  293 Jul  7 17:24 test2.m4.bz2lrwxrwxrwx 1 root root        8 Jul 26 00:25 test3.m4 -> test2.m4[root@localhost bz]# chgrp -h edu test3.m4 [root@localhost bz]# lltotal 12drwxr-xr-x 2 root edu      4096 Jul  7 17:19 test-rw-r--r-- 1 root edu       299 Jul  7 17:12 test2.m4-rw-r--r-- 1 root postgres  293 Jul  7 17:24 test2.m4.bz2lrwxrwxrwx 1 root edu         8 Jul 26 00:25 test3.m4 -> test2.m4

五,总结

chgrp由David MacKenzie和Jim Meyering撰写,作用和chown类似。

报告错误  

GNU核心工具在线帮助:<https://www.gnu.org/software/coreutils/如发现任何翻译错误,请向<https://translationproject.org/team/>报告

版权声明 版权所有 (C) 2020 自由软件基金会股份有限公司。许可证 GPLv3+:

GNU GPL 版本 3 或更高版本 <https://gnu.org/licenses/gpl.html>。这是自由软件:您可以自由修改和重新分发。在法律允许的范围内,不提供任何保证。

另见 chown(1), chown(2)

 完整文档<https://www.gnu.org/software/coreutils/chgrp>, 或可通过以下命令在本地获取:info '(coreutils) chgrp invocation'

最后的最后(Last but not least),欢迎交流:

关注公众号留言,或者在下方直接留言:

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 16:56:53 HTTP/2.0 GET : https://f.mffb.com.cn/a/506776.html
  2. 运行时间 : 0.258316s [ 吞吐率:3.87req/s ] 内存消耗:4,624.98kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=d877a839063cb1f62688554a1697f17a
  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.001080s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001683s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000806s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000727s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001372s ]
  6. SELECT * FROM `set` [ RunTime:0.000659s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001730s ]
  8. SELECT * FROM `article` WHERE `id` = 506776 LIMIT 1 [ RunTime:0.028369s ]
  9. UPDATE `article` SET `lasttime` = 1787302613 WHERE `id` = 506776 [ RunTime:0.025989s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.008604s ]
  11. SELECT * FROM `article` WHERE `id` < 506776 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001618s ]
  12. SELECT * FROM `article` WHERE `id` > 506776 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001043s ]
  13. SELECT * FROM `article` WHERE `id` < 506776 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002312s ]
  14. SELECT * FROM `article` WHERE `id` < 506776 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.012706s ]
  15. SELECT * FROM `article` WHERE `id` < 506776 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002513s ]
0.262222s