当前位置:首页>Linux>Linux(RHEL/CentOS)系统基础优化与安全加固方案

Linux(RHEL/CentOS)系统基础优化与安全加固方案

  • 2026-01-15 21:27:46
Linux(RHEL/CentOS)系统基础优化与安全加固方案

一、方案概述

本方案针对基于 RHEL(Red Hat Enterprise Linux)、CentOS 及其衍生版本(Rocky Linux、AlmaLinux 等)的 Linux 操作系统,提供一套基础安全加固与性能优化配置指南。方案遵循最小权限原则和纵深防御策略,覆盖系统配置、访问控制、网络防护、审计监控等关键领域,适用于生产环境和关键业务系统。
⚠️ 重要注意事项:
  1. 测试环境先行:所有配置变更前必须在测试环境验证

  2. 备份原则:修改关键配置文件前务必备份(如cp file file.bak.$(date +%Y%m%d)

  3. 分步实施:按照业务影响程度分批实施,避免业务中断

  4. 文档记录:记录所有变更内容、时间和原因

  5. 适用系统:RHEL/CentOS 7.x, 8.x, 9.x 及兼容发行版

  6. 注意事项:部分配置可能需根据实际业务需求调整,特别是网络和性能相关参数。

二、系统安全加固

2.1 文件与目录权限

# 1. 关键目录权限设置chmod 750 /etc/rc.d/init.d/    # 系统启动脚本目录chmod 600 /etc/security/opasswd # 旧密码存储文件chmod 700 /root                 # root 主目录chmod 700 /boot /usr/src /lib/modules  # 内核相关目录# 2. 设置不可修改的系统文件属性(chattr +i)chattr +i /etc/passwd /etc/shadow /etc/group /etc/gshadowchattr +i /etc/inittab /etc/rc.local /etc/fstabchattr +i /etc/sudoers /etc/ssh/sshd_config# 3. 特殊权限文件检查与清理# 查找 SUID/SGID 文件并评估必要性find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -l {} \; > /tmp/suid_sgid.list# 查找无属主文件find / -nouser -o -nogroup -exec ls -l {} \; > /tmp/nouser_files.list# 4. 挂载参数优化(/etc/fstab)# 添加 noexec,nosuid,nodev 参数到临时文件系统# 示例:/dev/mapper/vg_tmp /tmp ext4 defaults,nosuid,noexec,nodev 0 0# /dev/shm 临时内存文件系统加固echo "tmpfs /dev/shm tmpfs defaults,nosuid,noexec,nodev 0 0" >> /etc/fstab
注解:
  • chattr +i设置不可修改属性,防止误操作或恶意修改

  • SUID/SGID 文件可能被用于权限提升攻击,需定期审计

  • /tmp/dev/shm使用noexec防止执行恶意程序

2.2 SSH 服务安全加固

# 备份原配置文件cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak.$(date +%Y%m%d)# 1. 协议与加密算法配置sed -i 's/#Protocol 2/Protocol 2/' /etc/ssh/sshd_configecho "Ciphers aes256-ctr,aes192-ctr,aes128-ctr" >> /etc/ssh/sshd_configecho "MACs hmac-sha2-512,hmac-sha2-256" >> /etc/ssh/sshd_config# 2. 访问控制配置sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_configsed -i 's/#MaxAuthTries 6/MaxAuthTries 3/' /etc/ssh/sshd_configecho "AllowUsers admin_user1 admin_user2" >> /etc/ssh/sshd_config  # 限制可登录用户echo "AllowGroups sshusers" >> /etc/ssh/sshd_config  # 限制可登录组# 3. 会话超时与连接限制sed -i 's/#ClientAliveInterval 0/ClientAliveInterval 300/' /etc/ssh/sshd_configsed -i 's/#ClientAliveCountMax 3/ClientAliveCountMax 2/' /etc/ssh/sshd_configsed -i 's/#MaxSessions 10/MaxSessions 3/' /etc/ssh/sshd_config# 4. 其他安全设置sed -i 's/#LoginGraceTime 2m/LoginGraceTime 1m/' /etc/ssh/sshd_configsed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_configsed -i 's/#IgnoreRhosts yes/IgnoreRhosts yes/' /etc/ssh/sshd_configecho "UseDNS no" >> /etc/ssh/sshd_config  # 加快连接速度# 5. 重启 SSH 服务systemctl restart sshd# 测试连接正常后再断开当前会话
注解:
  • Protocol 2禁用不安全的 SSHv1

  • PermitRootLogin no强制使用普通用户+sudo 方式

  • ClientAliveInterval防止僵尸会话占用资源

  • 修改端口后需同步更新防火墙规则:firewall-cmd --permanent --add-port=2022/tcp

2.3 防火墙配置

# 1. 启用并配置 firewalld(CentOS 7+/RHEL 7+)systemctl start firewalldsystemctl enable firewalld# 2. 基础规则配置firewall-cmd --permanent --zone=public --set-target=DROP  # 默认拒绝firewall-cmd --permanent --zone=public --add-service=ssh   # 放行 SSHfirewall-cmd --permanent --zone=public --add-port=80/tcp   # 放行 HTTPfirewall-cmd --permanent --zone=public --add-port=443/tcp  # 放行 HTTPS# 3. 限制 SSH 访问源 IP(按需设置)firewall-cmd --permanent --zone=public --add-rich-rule='  rule family="ipv4"  source address="192.168.1.0/24"  port protocol="tcp" port="22" accept'# 4. 防洪水攻击规则firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 1 \  -p tcp --dport 22 -m state --state NEW -m recent --setfirewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 2 \  -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 3 -j DROP# 5. 应用配置firewall-cmd --reloadfirewall-cmd --list-all  # 验证规则# 6. 传统 iptables 配置(CentOS 6/RHEL 6)iptables -F  # 清空现有规则iptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPUT ACCEPTiptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPTiptables -A INPUT -p tcp --dport 22 -j ACCEPTservice iptables save

三、账户与访问控制

3.1 密码策略强化

# 1. 修改全局密码策略(/etc/login.defs)sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs      # 密码最长 90 天sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 7/' /etc/login.defs       # 密码修改间隔 7 天sed -i 's/^PASS_MIN_LEN.*/PASS_MIN_LEN 12/' /etc/login.defs        # 密码最小长度 12sed -i 's/^PASS_WARN_AGE.*/PASS_WARN_AGE 14/' /etc/login.defs      # 过期前 14 天警告# 2. PAM 密码复杂度配置(/etc/security/pwquality.conf 或/etc/pam.d/system-auth)echo "minlen = 12" >> /etc/security/pwquality.confecho "minclass = 3" >> /etc/security/pwquality.conf  # 至少 3 种字符类型echo "maxrepeat = 3" >> /etc/security/pwquality.conf  # 相同字符最多重复 3 次echo "dcredit = -1" >> /etc/security/pwquality.conf   # 至少 1 位数字echo "ucredit = -1" >> /etc/security/pwquality.conf   # 至少 1 位大写字母echo "lcredit = -1" >> /etc/security/pwquality.conf   # 至少 1 位小写字母echo "ocredit = -1" >> /etc/security/pwquality.conf   # 至少 1 位特殊字符# 3. 应用密码策略到现有用户for user in $(awk -F: '$3 >= 1000 {print $1}' /etc/passwd); do  chage -M 90 -m 7 -W 14 $userdone# 4. 登录失败锁定策略(/etc/pam.d/password-auth)echo "auth required pam_faillock.so preauth silent audit deny=5 unlock_time=900" >> /etc/pam.d/password-authecho "auth [default=die] pam_faillock.so authfail audit deny=5 unlock_time=900" >> /etc/pam.d/password-authecho "account required pam_faillock.so" >> /etc/pam.d/password-auth

3.2 用户与权限管理

# 1. 检查空密码账户awk -F: '($2 == "") {print $1}' /etc/shadow# 2. 检查 UID 为 0 的非 root 账户awk -F: '($3 == 0) {print $1}' /etc/passwd | grep -v root# 3. 创建系统管理组并配置 sudogroupadd -g 10000 adminecho "%admin ALL=(ALL) ALL" >> /etc/sudoers.d/admin_group# 精细化 sudo 权限示例:echo "%webadmins ALL=(root) /usr/bin/systemctl restart nginx, /usr/bin/systemctl status nginx" >> /etc/sudoers.d/webadmin# 4. 设置用户历史命令记录echo "export HISTTIMEFORMAT=\"%F %T \"" >> /etc/profileecho "export HISTSIZE=10000" >> /etc/profileecho "export HISTFILESIZE=10000" >> /etc/profileecho "export HISTCONTROL=ignoredups:erasedups" >> /etc/profileecho "shopt -s histappend" >> /etc/profileecho "export PROMPT_COMMAND=\"history -a\"" >> /etc/profile# 5. 配置 umask 默认值echo "umask 027" >> /etc/profile  # 文件默认权限 640,目录 750echo "umask 027" >> /etc/bashrc

3.3 会话超时设置

# 1. 设置全局会话超时(/etc/profile)echo "export TMOUT=900" >> /etc/profile  # 15 分钟无操作超时echo "readonly TMOUT" >> /etc/profile    # 防止用户修改# 2. 配置 sshd 超时(已在前面 SSH 部分配置)# 3. 配置屏幕锁定(需要安装 vlock)yum install -y vlockecho "alias lock='vlock -a'" >> /etc/profile.d/alias.sh  # 创建锁定别名

四、内核参数优化

4.1 网络参数调优

# 创建专用配置文件cat > /etc/sysctl.d/99-sysctl-optimize.conf << EOF# 避免放大攻击net.ipv4.icmp_echo_ignore_broadcasts = 1# 开启恶意 icmp 错误消息保护net.ipv4.icmp_ignore_bogus_error_responses = 1# 开启 SYN 洪水攻击保护net.ipv4.tcp_syncookies = 1net.ipv4.tcp_syn_retries = 3net.ipv4.tcp_synack_retries = 3# 开启并记录欺骗、源路由和重定向包net.ipv4.conf.all.log_martians = 1net.ipv4.conf.default.log_martians = 1net.ipv4.conf.all.rp_filter = 1net.ipv4.conf.default.rp_filter = 1# 不响应 ICMP 时间戳请求net.ipv4.tcp_timestamps = 0# 开启 IP 转发(网关/路由器需要,服务器通常关闭)net.ipv4.ip_forward = 0# 优化 TCP 缓冲区net.ipv4.tcp_rmem = 4096 87380 16777216net.ipv4.tcp_wmem = 4096 65536 16777216# 增加最大连接数net.core.somaxconn = 65535net.ipv4.tcp_max_syn_backlog = 65535# TIME_WAIT 连接重用和快速回收net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 0  # 在 NAT 环境中建议为 0net.ipv4.tcp_fin_timeout = 30# 保持连接时间net.ipv4.tcp_keepalive_time = 1200net.ipv4.tcp_keepalive_probes = 3net.ipv4.tcp_keepalive_intvl = 15# 限制系统资源使用kernel.pid_max = 65535vm.swappiness = 10           # 减少交换倾向vm.dirty_ratio = 10          # 内存脏页比例vm.dirty_background_ratio = 5# 禁止 core dump(生产环境)fs.suid_dumpable = 0EOF# 应用配置sysctl -p /etc/sysctl.d/99-sysctl-optimize.conf

4.2 系统资源限制

# 编辑/etc/security/limits.confcat >> /etc/security/limits.conf << EOF* soft nofile 65535* hard nofile 65535* soft nproc 65535* hard nproc 65535* soft core 0* hard core 0@webadmins soft nofile 102400@webadmins hard nofile 102400root soft nofile unlimitedroot hard nofile unlimitedEOF# 对于 systemd 服务,还需要配置/etc/systemd/system.confsed -i 's/#DefaultLimitNOFILE=/DefaultLimitNOFILE=65535/' /etc/systemd/system.confsed -i 's/#DefaultLimitNPROC=/DefaultLimitNPROC=65535/' /etc/systemd/system.conf# 重新加载 systemd 配置systemctl daemon-reload

五、日志与审计

5.1 系统日志配置

# 1. 配置 rsyslog(/etc/rsyslog.conf)echo "auth,authpriv.* /var/log/secure" >> /etc/rsyslog.confecho "*.info;mail.none;authpriv.none;cron.none /var/log/messages" >> /etc/rsyslog.confecho "cron.* /var/log/cron" >> /etc/rsyslog.conf# 2. 配置日志轮转(/etc/logrotate.d/syslog)cat > /etc/logrotate.d/syslog << EOF/var/log/messages/var/log/secure/var/log/cron{    daily    rotate 30    missingok    compress    delaycompress    sharedscripts    postrotate    /bin/kill -HUP \$(cat /var/run/syslogd.pid 2> /dev/null) 2> /dev/null || true    endscript}EOF# 3. 启用日志服务器转发(可选)echo "*.* @192.168.1.100:514" >> /etc/rsyslog.conf  # 转发到远程日志服务器systemctl restart rsyslog

5.2 审计服务配置

# 1. 安装并启用 auditdyum install -y auditsystemctl start auditdsystemctl enable auditd# 2. 关键审计规则配置(/etc/audit/rules.d/audit.rules)cat > /etc/audit/rules.d/audit.rules << EOF# 监控系统调用-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k time-change-a always,exit -F arch=b32 -S adjtimex -S settimeofday -S stime -k time-change-a always,exit -F arch=b64 -S clock_settime -k time-change-a always,exit -F arch=b32 -S clock_settime -k time-change# 监控用户和组管理-w /etc/passwd -p wa -k identity-w /etc/group -p wa -k identity-w /etc/gshadow -p wa -k identity# 监控文件系统挂载-a always,exit -F arch=b64 -S mount -S umount2 -k mounts# 监控特权命令执行-a always,exit -F path=/bin/su -F perm=x -F auid>=1000 -F auid!=4294967295 -k privileged# 监控文件删除-a always,exit -F arch=b64 -S unlink -S unlinkat -S rename -S renameat -k delete# 监控网络配置-w /etc/hosts -p wa -k network_modify-w /etc/sysconfig/network -p wa -k network_modifyEOF# 3. 重启审计服务augenrules --loadsystemctl restart auditd# 4. 常用审计查询命令auditctl -l  # 查看当前审计规则ausearch -k identity  # 按关键词查询审计记录aureport -m  # 生成审计报告

六、服务与性能优化

6.1 服务管理优化

# 1. 禁用不必要的服务systemctl disable bluetooth cups postfix sendmail  # 按需禁用systemctl stop bluetooth cups postfix sendmail# 2. 配置服务启动超时sed -i 's/#DefaultTimeoutStartSec=90s/DefaultTimeoutStartSec=30s/' /etc/systemd/system.conf# 3. 优化 journald 日志(/etc/systemd/journald.conf)sed -i 's/#SystemMaxUse=/SystemMaxUse=1G/' /etc/systemd/journald.confsed -i 's/#SystemMaxFileSize=/SystemMaxFileSize=100M/' /etc/systemd/journald.conf# 4. 配置 NTP 时间同步yum install -y chronysystemctl start chronydsystemctl enable chronydecho "server ntp.aliyun.com iburst" >> /etc/chrony.confecho "server time1.cloud.tencent.com iburst" >> /etc/chrony.confsystemctl restart chronydchronyc sources -v  # 验证时间源

6.2 性能监控工具

# 1. 安装常用监控工具yum install -y htop iotop iftop nmon sysstat dstat net-tools# 2. 配置 sar 数据收集(sysstat)sed -i 's/^HISTORY=.*/HISTORY=30/' /etc/sysconfig/sysstat  # 保存 30 天数据systemctl start sysstatsystemctl enable sysstat# 3. 创建性能监控脚本cat > /usr/local/bin/system_check.sh << 'EOF'#!/bin/bashecho "=== 系统时间 ==="dateecho ""echo "=== 系统负载 ==="uptimeecho ""echo "=== 内存使用 ==="free -hecho ""echo "=== 磁盘使用 ==="df -hTecho ""echo "=== TOP 进程 ==="ps aux --sort=-%cpu | head -10EOFchmod +x /usr/local/bin/system_check.sh# 4. 配置定期清理任务(/etc/cron.weekly/cleanup)cat > /etc/cron.weekly/cleanup << 'EOF'#!/bin/bash# 清理临时文件find /tmp -type f -atime +7 -deletefind /var/tmp -type f -atime +7 -delete# 清理旧日志find /var/log -name "*.log.*" -type f -mtime +30 -deletefind /var/log -name "*.gz" -type f -mtime +90 -delete# 清理包管理器缓存yum clean alldnf clean all  # 如果使用 dnfEOFchmod +x /etc/cron.weekly/cleanup

七、实施检查清单

7.1 实施前检查

    • 完整系统备份已创建

    • 维护窗口已申请批准

    • 回滚方案已准备

    • 测试环境验证通过

    • 相关团队已通知

7.2 基础安全配置

    • SSH 安全加固完成

    • 防火墙规则配置正确

    • 密码策略已应用

    • 不必要的服务已禁用

    • 文件权限设置完成

7.3 内核与性能优化

    • sysctl 参数已优化

    • 资源限制已配置

    • 日志配置已完成

    • 审计规则已部署

    • 时间同步正常

7.4 验证测试

    • 系统重启后服务正常

    • 网络连接测试通过

    • 性能基准测试完成

    • 安全扫描无高危漏洞

    • 监控报警配置完成

7.5 文档记录

    • 所有变更已记录

    • 配置文件已备份

    • 操作手册已更新

    • 团队培训已完成

提示:本方案为通用加固方案,在实际生产环境中实施前,请根据具体的业务需求、系统负载和安全等级要求进行适当的调整和测试。定期审查和更新安全配置是保持系统安全的关键。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-09 00:43:11 HTTP/2.0 GET : https://f.mffb.com.cn/a/460604.html
  2. 运行时间 : 0.255446s [ 吞吐率:3.91req/s ] 内存消耗:4,998.05kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=c2d7809f4f8b8aa7f7f3d6ef492afd6c
  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.000643s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000902s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.007771s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003630s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000601s ]
  6. SELECT * FROM `set` [ RunTime:0.004697s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001145s ]
  8. SELECT * FROM `article` WHERE `id` = 460604 LIMIT 1 [ RunTime:0.005465s ]
  9. UPDATE `article` SET `lasttime` = 1770568991 WHERE `id` = 460604 [ RunTime:0.033394s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.007622s ]
  11. SELECT * FROM `article` WHERE `id` < 460604 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.013558s ]
  12. SELECT * FROM `article` WHERE `id` > 460604 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.028677s ]
  13. SELECT * FROM `article` WHERE `id` < 460604 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.020575s ]
  14. SELECT * FROM `article` WHERE `id` < 460604 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.024276s ]
  15. SELECT * FROM `article` WHERE `id` < 460604 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.006164s ]
0.262325s