当前位置:首页>Linux>1.22 Linux服务管理

1.22 Linux服务管理

  • 2026-03-23 20:14:45
1.22 Linux服务管理

14 服务管理

6版本

一、概念

1 服务分类
2 查询服务
#查看服务在级别下的状态[root@localhost ~]# chkconfig --listauditd          0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭crond           0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭ip6tables       0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭iptables        0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭kdump           0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭mdmonitor       0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭messagebus      0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭netconsole      0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭netfs           0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭network         0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭nfs-rdma        0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭postfix         0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭rdisc           0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭rdma            0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭restorecond     0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭rsyslog         0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭saslauthd       0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭sshd            0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭udev-post       0:关闭 1:启用 2:启用 3:启用 4:启用 5:启用 6:关闭
## 系统级别0    1     2         3    4    5     6关机    救援模式    字符界面(少了服务的)    完整纯字符    保留    图形化    重启

二 rpm安装的服务管理

1 独立服务器管理
1) 启动
#绝对路径启动[root@localhost ~]# /etc/init.d/httpd start 正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName                                                           [确定]#通过service启动[root@localhost ~]# service httpd restart 停止 httpd:                                               [确定]正在启动 httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName                                                           [确定]
2) 开机自启动

在不同系统级别下的,服务的状态,以实现开机自启动

chkconfig  --level  级别  服务   on   #系统在级别下,启动服务chkconfig  --level  级别  服务   on   #系统在级别下,停用服务
[root@localhost ~]# chkconfig --list httpd           #查看httpd服务与系统级别关系httpd           0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭[root@localhost ~]# chkconfig --level 2345 httpd on         #在2345系统级别启动httpd服务[root@localhost ~]# chkconfig --list httpd           #查看httpd服务与系统级别关系httpd           0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭  
3) ntsysv 图形化工具 不要使用
2 基于xinetd服务的管理

监听端口,访问慢,一般不使用

启动
[root@localhost ~]# yum -y install xinetd      #安装xinetd[root@localhost ~]# vim /etc/xinetd.d/rsync            #修改配置文件# default: off# description: The rsync server is a good addition to an ftp server, as it \#       allows crc checksumming etc.service rsync{        disable = no                  #将禁用关闭,表示启用        flags           = IPv6        socket_type     = stream        wait            = no        user            = root        server          = /usr/bin/rsync        server_args     = --daemon        log_on_failure  += USERID}[root@localhost ~]# netstat -anpt | grep xinetd      #检查xinetd服务未开启[root@localhost ~]# service xinetd start        #启动xinetd服务正在启动 xinetd:                                          [确定][root@localhost ~]# netstat -anpt | grep xinetd      #xinetd服务开启成功,找到对应端口tcp        0      0 :::873                      :::*                        LISTEN      1864/xinetd
自启动
[root@localhost ~]# chkconfig rsync on && chkconfig --list rsync   #设置rsync服务开机自启,查看级别对应rsync服务状态rsync           启用

三 源码包安装的服务管理(apache为例子)

1) 关闭,关闭rpm包安装的httpd
[root@localhost ~]# /etc/init.d/httpd stop    #停用httpd停止 httpd:                                               [确定][root@localhost ~]# yum -y remove httpd    #卸载httpd
2) 安装apache
## 挂载格式:  挂载iso文件  mount  -o  loop  iso文件位置  挂载点[root@localhost ~]# mount -o loop /root/LAMP-64.iso /disk1

将挂载点下所需要的的压缩包复制到指定位置,并解压

安装
#yum安装所需要的编译语言[root@localhost lamp]# yum -y install gcc* zlib zlib-devel pcre pcre-devel #安装apr[root@localhost lamp]# cd /lamp/apr-1.4.6 && ./configure  && make && make install [root@localhost apr-1.4.6]# cd /lamp/apr-util-1.4.1 && ./configure --with-apr=/usr/local/apr/ && make && make install #安装apache[root@localhost apr-util-1.4.1]# cd /lamp/httpd-2.4.7 && ./configure --prefix=/usr/local/apache && make && make install [root@localhost ~]# ls /usr/local/   #查看apache是否安装成功apache  apr  bin  etc  games  include  lib  lib64  libexec  sbin  share  src[root@localhost ~]# netstat -anpt   #检查端口Active Internet connections (servers and established)Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1270/sshd           tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1349/master         tcp        0      0 192.168.18.136:22           192.168.18.1:7970           ESTABLISHED 1476/sshd           tcp        0      0 :::22                       :::*                        LISTEN      1270/sshd           tcp        0      0 ::1:25                      :::*                        LISTEN      1349/master         [root@localhost ~]# /usr/local/apache/bin/apachectl start   #启用apacheAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message[root@localhost ~]# echo $?0[root@localhost ~]# netstat -napt | grep 80      #80端口开启,apache启动成功tcp        0      0 :::80                       :::*                        LISTEN      30017/httpd
启动apache
[root@localhost ~]# /usr/local/apache/bin/apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 30017) already running
停用apache
[root@localhost ~]# /usr/local/apache/bin/apachectl stopAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
启动写入配置文件 /etc/rc.d/rc.local
[root@localhost ~]# vim /etc/rc.d/rc.local #!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.touch /var/lock/subsys/local/usr/local/apache/bin/apachectl start 
3) 让service能管理源码包安装的服务(创建软链接)
  • 绝对路径的方式关闭服务

  • 创建软链接

#绝对路径的方式关闭服务[root@localhost ~]# /usr/local/apache/bin/apachectl stopAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message#创建软链接[root@localhost ~]# ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache#service启动apache[root@localhost ~]# service apache start   AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message[root@localhost ~]# netstat -anpt |grep httpd  #端口开启成功tcp        0      0 :::80                       :::*                        LISTEN      1513/httpd          #service停用apache[root@localhost ~]# service apache stop AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message[root@localhost ~]# netstat -anpt | grep 80   #80端口关闭
4) 让chkconfig能管理源码包安装的服务

修改配置文件并启用

[root@localhost ~]# vim /etc/init.d/apache   #修改配置文件#!/bin/sh##chkconfig:2345 86 76#description:yq[root@localhost ~]# chkconfig --add apache  #将配置加入chkconfig[root@localhost ~]# chkconfig --list apache  #检查apache          0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭

7版本

systemd替代了6版本的initsystemd优势  并行启动服务  命令简单,systemctl可以实现所有功能  有服务依赖检测并解决

1 systemd配置文件

/usr/lib/systemd/system   #服务启动脚本存放位置/run/systemd/system    #系统执行过程中产生的服务脚本/etc/systemd/system    #管理根据需要创建的服务脚本

2 systemctl 选项 服务

reload   #不关闭服务,重新读取服务配置文件status   #检查服务状态is-enabled  #检查服务是否开机自启动
[root@localhost ~]# systemctl reload sshd   #不关闭服务,重新读取服务配置文件[root@localhost ~]# systemctl status sshd   #检查服务状态● sshd.service - OpenSSH server daemon   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)   Active: active (running) since 四 2022-09-22 20:00:47 CST; 47s ago     Docs: man:sshd(8)           man:sshd_config(5)  Process: 14904 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Main PID: 14493 (sshd)   CGroup: /system.slice/sshd.service           └─14493 /usr/sbin/sshd -D9月 22 20:00:47 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...9月 22 20:00:47 localhost.localdomain sshd[14493]: Server listening on 0.0.0.0 port 22.9月 22 20:00:47 localhost.localdomain sshd[14493]: Server listening on :: port 22.9月 22 20:00:47 localhost.localdomain systemd[1]: Started OpenSSH server daemon.9月 22 20:01:00 localhost.localdomain sshd[14866]: Accepted password for root from 192.168.18.1 port 9914 ssh29月 22 20:01:22 localhost.localdomain systemd[1]: Reloading OpenSSH server daemon.9月 22 20:01:22 localhost.localdomain sshd[14493]: Received SIGHUP; restarting.9月 22 20:01:22 localhost.localdomain systemd[1]: Reloaded OpenSSH server daemon.9月 22 20:01:22 localhost.localdomain sshd[14493]: Server listening on 0.0.0.0 port 22.9月 22 20:01:22 localhost.localdomain sshd[14493]: Server listening on :: port 22.[root@localhost ~]# systemctl is-enabled sshd  #检查服务是否开机自启动enabled

常见后缀

  .service   #服务,服务单元  .tarhet    #环境

3 检查系统服务

[root@localhost ~]# systemctl list-units #显示当前启动unit[root@localhost ~]# systemctl list-units --all  #显示所有unit,包括未启用的[root@localhost ~]# systemctl list-unit-files  #显示/usr/lib/systemd/system的unit状态

4 切换操作环境

1.graphical.target:图形化界面。

2.multi-user.target:命令行模式。

3.rescue.target:救援模式。

4.emergency.target:紧急处理系统的错误,需要使用root登录,再无法使用 rescue.target的情况下可以尝试使用此模式。

5.shutdown.target:关机。

[root@localhost ~]# systemctl set-default multi-user.target    #更改默认启动级别为纯字符 init3Removed symlink /etc/systemd/system/default.target.Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.[root@localhost ~]# systemctl get-default        #查看multi-user.target[root@localhost ~]# systemctl set-default graphical.target    #更改默认启动级别为图形化 init5Removed symlink /etc/systemd/system/default.target.Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.[root@localhost ~]# systemctl get-default        #查看graphical.target   

5 管理源码包安装的服务(nginx为例)

安装nginx
[root@localhost ~]# tar -xvf nginx-1.18.0.tar.gz   #解压源码包[root@localhost nginx-1.18.0]# yum -y install gcc* zlib zlib-devel pcre pcre-devel  #安装语言及函数依赖关系[root@localhost nginx-1.18.0]# ./configure --prefix=/usr/local/nginx && make && make install   #安装nginx[root@localhost ~]# ls /usr/local          #检查bin  etc  games  include  lib  lib64  libexec  nginx  sbin  share  src  [root@localhost ~]# /usr/local/nginx/sbin/nginx      #启动nginx[root@localhost ~]# netstat -anpt |grep 80       #检查nginx80端口开启成功tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      17552/nginx: master 
开机自启动设置
  将源码包开启服务的方式,写入/etc/rc.d/rc.local文件中  7版本需要给rc.local文件可执行权限
[root@localhost ~]# vim /etc/rc.d/rc.local    #写入/etc/rc.d/rc.local文件中#!/bin/bash# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES## It is highly advisable to create own systemd services or udev rules# to run scripts during boot instead of using this file.## In contrast to previous versions due to parallel execution during boot# this script will NOT be run after all other services.## Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure# that this script will be executed during boot.touch /var/lock/subsys/local/usr/local/nginx/sbin/nginx[root@localhost ~]# chmod +x /etc/rc.d/rc.local    #给rc.local可执行权限
将服务加入systemctl管理
 绝对路径关闭源码包安装的服务  将.service文件复制到/usr/lib/systemd/system/中  启用配置
[root@localhost ~]# cp /root/nginx.service  /usr/lib/systemd/system/   #复制.service文件[root@localhost ~]# systemctl daemon-reload          #启用配置文件[root@localhost ~]# systemctl start nginx          #启动nginx[root@localhost ~]# netstat -anpt | grep 80          #检查80端口tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      17638/nginx: master [root@localhost ~]# systemctl status nginx          #查看nginx● nginx.service - nginx   Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)   Active: active (running) since 四 2022-09-22 20:32:15 CST; 30s ago  Process: 17637 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=0/SUCCESS) Main PID: 17638 (nginx)   CGroup: /system.slice/nginx.service           ├─17638 nginx: master process /usr/local/nginx/sbin/nginx           └─17639 nginx: worker process9月 22 20:32:15 localhost.localdomain systemd[1]: Starting nginx...9月 22 20:32:15 localhost.localdomain systemd[1]: Started nginx.
(apache为例)
[root@localhost ~]# mkdir /lamp /disk1[root@localhost ~]# df -h文件系统        容量  已用  可用 已用% 挂载点/dev/sda3        20G  1.6G   18G    8% /devtmpfs        476M     0  476M    0% /devtmpfs           487M     0  487M    0% /dev/shmtmpfs           487M  7.7M  479M    2% /runtmpfs           487M     0  487M    0% /sys/fs/cgroup/dev/sda1       509M  120M  389M   24% /boottmpfs            98M     0   98M    0% /run/user/0/dev/sr0        4.3G  4.3G     0  100% /mnt[root@localhost ~]# yum makecache已加载插件:fastestmirrorLoading mirror speeds from cached hostfilec7-media                                                                                                                  | 3.6 kB  00:00:00     元数据缓存已建立[root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# [root@localhost ~]# mount -o loop /root/LAMP-64.iso /disk1 mount: /dev/loop0 写保护,将以只读方式挂载[root@localhost ~]# cp -a /disk1/lamp/* /lamp/[root@localhost ~]# cd /lamp/#安装gcc*、zlib、pcre、apr、apr-util、apache[root@localhost lamp]# yum -y install gcc* zlib zlib-devel pcre pcre-devel && cd /lamp/apr-1.4.6 && ./configure && make && make install && cd /lamp/apr-util-1.4.1 && ./configure --with-apr=/usr/local/apr && make && make install && cd /lamp/httpd-2.4.7 && ./configure --prefix=/usr/local/apache && make -j 4 && make install #apache加入开机自启动[root@localhost httpd-2.4.7]# ls /usr/local/apache  apr  bin  etc  games  include  lib  lib64  libexec  nginx  sbin  share  src[root@localhost httpd-2.4.7]# netstat -anpt |grep 80tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      17638/nginx: master [root@localhost httpd-2.4.7]# systemctl stop nginx[root@localhost httpd-2.4.7]# netstat -anpt |grep 80[root@localhost httpd-2.4.7]# /usr/local/apache/bin/apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message[root@localhost httpd-2.4.7]# netstat -anpt |grep 80tcp6       0      0 :::80                   :::*                    LISTEN      46473/httpd         [root@localhost httpd-2.4.7]# echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.d/rc.local #apache加入开机自启动[root@localhost httpd-2.4.7]# [root@localhost httpd-2.4.7]# tail -n 3 /etc/rc.d/rc.localtouch /var/lock/subsys/local/usr/local/nginx/sbin/nginx/usr/local/apache/bin/apachectl start#apache加入systemctl管理[root@localhost ~]# touch apache.service[root@localhost ~]# vim apache.service [root@localhost ~]# cat /usr/lib/systemd/system/apache.service [Unit]Description=apacheAfter=network.target     [Service]Type=forking     ExecStart=/usr/local/apache/bin/apachectl  ExecReload=/usr/local/apache/bin/apachectl  reload ExecStop=/usr/local/apache/bin/apachectl  stop PrivateTmp=true[Install]WantedBy=multi-user.target  [root@localhost ~]# cp /root/apache.service  /usr/lib/systemd/system/[root@localhost ~]# systemctl daemon-reload[root@localhost ~]# systemctl status apache● apache.service - apache   Loaded: loaded (/usr/lib/systemd/system/apache.service; disabled; vendor preset: disabled)   Active: inactive (dead)9月 22 21:15:45 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/apache.…ent9月 22 21:15:45 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/apache.…行Hint: Some lines were ellipsized, use -l to show in full.[root@localhost ~]# systemctl restart apache[root@localhost ~]# netstat -anpt | grep 80tcp6       0      0 :::80                   :::*                    LISTEN      46473/httpd  [root@localhost ~]# systemctl status apache● apache.service - apache   Loaded: loaded (/usr/lib/systemd/system/apache.service; disabled; vendor preset: disabl   Active: active (running) since 四 2022-09-22 21:28:09 CST; 3s ago  Process: 46936 ExecStart=/usr/local/apache/bin/apachectl (code=exited, status=0/SUCCESS) Main PID: 46939 (httpd)   CGroup: /system.slice/apache.service           ├─46939 /usr/local/apache/bin/httpd           ├─46940 /usr/local/apache/bin/httpd           ├─46941 /usr/local/apache/bin/httpd           └─46942 /usr/local/apache/bin/httpd9月 22 21:28:09 localhost.localdomain systemd[1]: Starting apache...9月 22 21:28:09 localhost.localdomain apachectl[46936]: AH00558: httpd: Could not reliably9月 22 21:28:09 localhost.localdomain systemd[1]: Started apache.Hint: Some lines were ellipsized, use -l to show in full.

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 13:38:40 HTTP/2.0 GET : https://f.mffb.com.cn/a/482254.html
  2. 运行时间 : 0.179832s [ 吞吐率:5.56req/s ] 内存消耗:4,854.78kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=f1afdcb6b066d7438470ec7a607d664b
  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.000800s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000960s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000285s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000264s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000472s ]
  6. SELECT * FROM `set` [ RunTime:0.000214s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000678s ]
  8. SELECT * FROM `article` WHERE `id` = 482254 LIMIT 1 [ RunTime:0.000525s ]
  9. UPDATE `article` SET `lasttime` = 1774589921 WHERE `id` = 482254 [ RunTime:0.004552s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000260s ]
  11. SELECT * FROM `article` WHERE `id` < 482254 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000472s ]
  12. SELECT * FROM `article` WHERE `id` > 482254 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000615s ]
  13. SELECT * FROM `article` WHERE `id` < 482254 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.003442s ]
  14. SELECT * FROM `article` WHERE `id` < 482254 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002115s ]
  15. SELECT * FROM `article` WHERE `id` < 482254 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.011898s ]
0.185349s