当前位置:首页>Linux>Oracle linux8.8一键部署Oracle 11g

Oracle linux8.8一键部署Oracle 11g

  • 2026-06-30 11:55:04
Oracle linux8.8一键部署Oracle 11g

热衷于分享各种干货知识,大家有想看或者想学的可以评论区留言,秉承着“开源知识来源于互联网,回归于互联网”的理念,分享一些日常工作中能用到或者比较重要的内容,希望大家能够喜欢,不足之处请大家多宝贵地意见,我们一起提升,守住自己的饭碗。

关注公众号,技术道路不迷路

需要上传的安装包

脚本内容:
#!/bin/bash
#==============================================================#
# Oracle 11g R2 (11.2.0.4) 单机一键安装 - Oracle Linux 8 
# 支持断点续传
#==============================================================#
set -euo pipefail
LOG_FILE="/var/log/oracle_11g_ol8_install.log"
exec > >(tee -a "$LOG_FILE") 2>&1

# ---------------------- 参数配置 ----------------------
SOFTWARE_DIR="/soft"
ORACLE_BASE="/u01/app/oracle"
ORACLE_HOME="${ORACLE_BASE}/product/11.2.0/dbhome_1"
ORACLE_SID="orcl"
HOSTNAME="oracle-db"
CHARACTERSET="AL32UTF8"
NCHARACTERSET="AL16UTF16"
ORACLE_PASSWD="oracle"
SYS_PASSWD="oracle"

OPATCH_FILE="p6880880_112000_Linux-x86-64.zip"
PSU_FILE="p33477185_112040_Linux-x86-64.zip"
COMPAT_FILE="p33991024_11204220118_Generic.zip"

LOCAL_IP=$(hostname -I | awk '{print $1}')

"$(id -u)" -ne 0 ] && echo"请使用 root 用户执行" && exit 1

# 检查操作系统版本
OS_VER=$(cat /etc/oracle-release 2>/dev/null || cat /etc/redhat-release)
echo"操作系统版本: $OS_VER"
[[ "$OS_VER" =~ 8\. ]] || { echo"本脚本仅支持 Oracle Linux 8 / RHEL 8"exit 1; }

# 检查必需文件
declare -A REQUIRED_FILES=(
    ["$SOFTWARE_DIR/p13390677_112040_Linux-x86-64_1of7.zip"]="DB安装包1"
    ["$SOFTWARE_DIR/p13390677_112040_Linux-x86-64_2of7.zip"]="DB安装包2"
    ["$SOFTWARE_DIR/$OPATCH_FILE"]="OPatch升级包"
    ["$SOFTWARE_DIR/$PSU_FILE"]="PSU补丁"
    ["$SOFTWARE_DIR/$COMPAT_FILE"]="OL8兼容补丁"
)
for file in"${!REQUIRED_FILES[@]}"do
    [ -f "$file" ] || { echo"缺少文件: $file (${REQUIRED_FILES[$file]})"exit 1; }
done

#============================= 1. 系统环境准备 =============================#
echo">>> 步骤1:系统环境准备"

# 1.1 配置 YUM 源(若未配置)
if ! yum repolist 2>/dev/null | grep -q "AppStream"then
    mount /dev/sr0 /mnt 2>/dev/null || { echo"请挂载 Oracle Linux 8 ISO 到 /dev/sr0"exit 1; }
rm -rf /etc/yum.repos.d/*.repo
cat > /etc/yum.repos.d/local.repo <<-EOF
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
enabled=1
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
enabled=1
gpgcheck=0
EOF

    dnf makecache || yum makecache
fi

# 1.2 安装依赖包(强制重试,确保 gcc 等工具可用)
echo"安装编译工具及依赖包..."
for i in {1..3}; do
    dnf install -y \
        gcc gcc-c++ \
        bc binutils \
        compat-openssl10 \
        elfutils-libelf elfutils-libelf-devel \
        glibc glibc-devel \
        ksh libaio libaio-devel \
        libXrender libX11 libXau libXi libXtst \
        libgcc libstdc++ libstdc++-devel \
        libnsl libxcb libibverbs \
        make policycoreutils policycoreutils-python-utils \
        smartmontools sysstat unzip \
        java-1.8.0-openjdk-devel \
        --skip-broken && break || sleep 10
done

# 确保 gcc 命令可用
if ! command -v gcc &>/dev/null; then
echo"错误:gcc 未能安装,请检查 YUM 源!"
exit 1
fi

# 创建 libnsl 软链接(解决 -lnsl 错误)
[ ! -f /usr/lib64/libnsl.so ] && ln -sf /usr/lib64/libnsl.so.2 /usr/lib64/libnsl.so

# 1.3 内核参数(幂等)
echo"配置内核参数..."
cat > /etc/sysctl.d/99-oracle.conf <<-EOF
kernel.shmmni = 4096
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
vm.swappiness = 10
kernel.shmmax = $(( $(awk '/MemTotal/{print $2}' /proc/meminfo) * 1024 * 85 / 100 ))
kernel.shmall = $(( $(awk '/MemTotal/{print $2}' /proc/meminfo) * 1024 * 85 / 100 / 4096 ))
EOF

sysctl -p /etc/sysctl.d/99-oracle.conf 2>/dev/null || true

cat > /etc/security/limits.d/oracle.conf <<-EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
* soft memlock $(awk '/MemTotal/{print int($2*0.9*1024)}' /proc/meminfo)
* hard memlock $(awk '/MemTotal/{print int($2*0.9*1024)}' /proc/meminfo)
EOF


# 关闭 SELinux 和防火墙
setenforce 0 2>/dev/null || true
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl disable firewalld --now 2>/dev/null || true

# 禁用透明大页
if ! grep -q "transparent_hugepage=never" /etc/default/grub; then
cp /etc/default/grub /etc/default/grub.bak
    sed -i 's/quiet/quiet transparent_hugepage=never/' /etc/default/grub
    grub2-mkconfig -o /boot/grub2/grub.cfg
fi

# 1.4 创建用户和目录
echo"创建用户和目录..."
groupadd -g 54321 oinstall 2>/dev/null || true
groupadd -g 54322 dba 2>/dev/null || true
groupadd -g 54323 oper 2>/dev/null || true

if ! id oracle &>/dev/null; then
    useradd -u 54321 -g oinstall -G dba,oper oracle
echo"$ORACLE_PASSWD" | passwd --stdin oracle
fi

mkdir -p $ORACLE_HOME /u01/app/oraInventory /oradata /archivelog /backup
chown -R oracle:oinstall /u01 /oradata /archivelog /backup $SOFTWARE_DIR
chmod -R 775 /u01 /oradata /archivelog /backup $SOFTWARE_DIR

hostnamectl set-hostname $HOSTNAME
grep -q "$LOCAL_IP$HOSTNAME" /etc/hosts || echo"$LOCAL_IP$HOSTNAME" >> /etc/hosts

# 1.5 用户环境变量
echo"配置 oracle 环境变量..."
cat > /home/oracle/.bash_profile <<-EOF
export TMP=/tmp
export LANG=en_US
export TMPDIR=\$TMP
export ORACLE_UNQNAME=orcl
export ORACLE_SID=${ORACLE_SID}
export ORACLE_BASE=${ORACLE_BASE}
export ORACLE_HOME=${ORACLE_HOME}
export ORACLE_TERM=xterm
export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"
export NLS_LANG=AMERICAN_AMERICA.${CHARACTERSET}
export PATH=\$PATH:\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch
export THREADS_FLAG=native
umask 022
EOF

chown oracle:oinstall /home/oracle/.bash_profile

#============================= 2. 安装 Oracle 软件 =============================#
echo">>> 步骤2:安装 Oracle 数据库软件"

# 判断软件是否已安装(root.sh 存在即视为安装完成)
if [ ! -f "$ORACLE_HOME/root.sh" ]; then
echo"Oracle 软件未安装,开始全新安装..."

# 清理可能的残留
    pkill -f runInstaller 2>/dev/null || true
rm -rf $ORACLE_HOME /u01/app/oraInventory

# 解压安装包
    su - oracle -c "
        cd $SOFTWARE_DIR
        unzip -oq p13390677_112040_Linux-x86-64_1of7.zip
        unzip -oq p13390677_112040_Linux-x86-64_2of7.zip
    "


# 生成静默响应文件
cat > $SOFTWARE_DIR/db_install.rsp <<-EOF
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${HOSTNAME}
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=${ORACLE_HOME}
ORACLE_BASE=${ORACLE_BASE}
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
EOF


# 执行静默安装(使用 -waitForCompletion 确保完成)
echo"开始静默安装 Oracle 软件,请等待..."
    su - oracle -c "
        export CV_ASSUME_DISTID=OL7
$SOFTWARE_DIR/database/runInstaller -silent -noconfig -ignorePrereq -waitForCompletion -responseFile $SOFTWARE_DIR/db_install.rsp -jreLoc /usr/lib/jvm/java-1.8.0-openjdk
    "


# 检查安装结果
if [ ! -f "$ORACLE_HOME/root.sh" ]; then
echo"错误:软件安装失败,root.sh 未生成!"
exit 1
fi
echo"Oracle 软件安装成功。"
else
echo"Oracle 软件已安装(检测到 root.sh),跳过安装。"
fi

# 执行 root 脚本(如果尚未执行,可重复执行无影响)
echo"执行 root 脚本..."
/u01/app/oraInventory/orainstRoot.sh 2>/dev/null || true
$ORACLE_HOME/root.sh

#============================= 3. 应用补丁 =============================#
echo">>> 步骤3:升级 OPatch 并安装补丁"

# 强制升级 OPatch 到新版本
echo"升级 OPatch..."
su - oracle -c "
    rm -rf $ORACLE_HOME/OPatch
    cd $SOFTWARE_DIR
    unzip -oq $OPATCH_FILE
    mv OPatch $ORACLE_HOME/
    opatch version
"


# 检查 OPatch 版本是否满足要求
OPATCH_VER=$(su - oracle -c "opatch version" | grep "OPatch Version" | awk -F: '{print $2}' | tr -d ' ')
if [[ "$OPATCH_VER" < "11.2.0.3.41" ]]; then
echo"OPatch 升级失败,当前版本 $OPATCH_VER"
exit 1
fi
echo"OPatch 版本: $OPATCH_VER"

# 补丁应用函数(自动确认,跳过已安装补丁)
apply_patch() {
local patch_name=$1 patch_dir=$2
if su - oracle -c "opatch lspatches | grep -w '$patch_name'" >/dev/null 2>&1; then
echo"补丁 $patch_name 已安装,跳过"
else
echo"正在应用补丁 $patch_name ..."
        su - oracle -c "
            source /home/oracle/.bash_profile
            cd $SOFTWARE_DIR/$patch_dir
            yes | $ORACLE_HOME/OPatch/opatch apply
        "
 || { echo"补丁 $patch_name 应用失败!"exit 1; }
fi
}

# 应用 PSU 补丁 33477185
echo"[1/2] 应用 PSU 补丁..."
su - oracle -c "cd $SOFTWARE_DIR && unzip -oq $PSU_FILE"
apply_patch "33477185""33477185"

# 应用 OL8 兼容性补丁 33991024
echo"[2/2] 应用 OL8 兼容性补丁..."
su - oracle -c "cd $SOFTWARE_DIR && unzip -oq $COMPAT_FILE"
apply_patch "33991024""33991024"

#============================= 4. 执行 relink all(补丁后必须) =============================#
echo">>> 步骤4:执行 relink all 修复二进制文件"

# 再次确认 gcc 可用(防止之前环境变化)
if ! command -v gcc &>/dev/null; then
echo"gcc 缺失,再次安装..."
    dnf install -y gcc gcc-c++ || yum install -y gcc gcc-c++
fi

# 修复可能的 libaio 冲突
cd$ORACLE_HOME/lib/stubs
[ -f libaio.so.1 ] && mv -f libaio.so.1 libaio.so.1.bak
ln -sf /usr/lib64/libaio.so.1 libaio.so.1

su - oracle -c "$ORACLE_HOME/bin/relink all"

# 关键检查:relink 后 oracle 文件必须有效
if ! file $ORACLE_HOME/bin/oracle | grep -q "ELF"then
echo"错误:relink 后 oracle 二进制仍然无效!"
exit 1
fi

echo"补丁列表:"
su - oracle -c "$ORACLE_HOME/OPatch/opatch lspatches"

#============================= 5. 创建监听 =============================#
echo">>> 步骤5:创建监听器"
if ! su - oracle -c "lsnrctl status" 2>/dev/null | grep -q "LISTENER"then
echo"创建监听..."
    su - oracle -c "netca -silent -responseFile $ORACLE_HOME/assistants/netca/netca.rsp"
else
echo"监听已存在,跳过。"
fi

#============================= 6. 创建数据库 =============================#
echo">>> 步骤6:创建数据库"
if ! su - oracle -c "ps -ef | grep -q '[o]ra_pmon_${ORACLE_SID}'"then
echo"创建数据库实例 $ORACLE_SID ..."
    MEM_MB=$(( $(awk '/MemTotal/{print $2}' /proc/meminfo) * 8 / 10 / 1024 ))
    su - oracle -c "
        dbca -silent -createDatabase \
        -templateName General_Purpose.dbc \
        -gdbname $ORACLE_SID \
        -sid $ORACLE_SID \
        -sysPassword $SYS_PASSWD \
        -systemPassword $SYS_PASSWD \
        -redoLogFileSize 1024 \
        -storageType FS \
        -datafileDestination /oradata \
        -characterSet $CHARACTERSET \
        -nationalCharacterSet $NCHARACTERSET \
        -emConfiguration NONE \
        -automaticMemoryManagement false \
        -totalMemory $MEM_MB \
        -databaseType OLTP
    "

else
echo"数据库实例 $ORACLE_SID 已运行,跳过建库。"
fi

#============================= 7. 优化与自启动 =============================#
echo">>> 步骤7:优化数据库参数并配置开机自启动"
su - oracle -c "
    sqlplus -S / as sysdba <<-EOF
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
ALTER SYSTEM SET AUDIT_TRAIL=NONE SCOPE=SPFILE;
ALTER SYSTEM SET PROCESSES=2000 SCOPE=SPFILE;
ALTER SYSTEM SET DEFERRED_SEGMENT_CREATION=FALSE;
ALTER SYSTEM SET \"_optimizer_cartesian_enabled\"=FALSE;
ALTER SYSTEM SET RESULT_CACHE_MAX_SIZE=0;
ALTER SYSTEM SET DB_CREATE_FILE_DEST='/oradata';
ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/archivelog';
SHUTDOWN IMMEDIATE;
STARTUP;
EXIT;
EOF
"
 || echo"优化步骤执行有误,可手动调整。"

# 配置开机自启
sed -i 's/db:N/db:Y/' /etc/oratab
sed -i "s/ORACLE_HOME_LISTNER=\$1/ORACLE_HOME_LISTNER=\$ORACLE_HOME/"$ORACLE_HOME/bin/dbstart
if ! grep -q "OracleBegin" /etc/rc.d/rc.local; then
cat >> /etc/rc.d/rc.local <<-EOF
# OracleBegin
su oracle -lc "$ORACLE_HOME/bin/lsnrctl start"
su oracle -lc "$ORACLE_HOME/bin/dbstart"
EOF

chmod +x /etc/rc.d/rc.local
fi

echo"========================================="
echo" Oracle 11g R2 安装部署完成!"
echo" SID: $ORACLE_SID"
echo" 系统密码: $SYS_PASSWD"
echo" 监听端口: 1521"
echo" 连接: sqlplus system/$SYS_PASSWD@$LOCAL_IP:1521/$ORACLE_SID"
echo"========================================="

参考文章:https://www.modb.pro/db/1743464109273325568

END
往期文章回顾

文中的概念来源于互联网,如有侵权,请联系我删除。

欢迎关注公众号:小周的数据库进阶之路,一起交流AI、数据库、中间件和云计算等技术。如果觉得读完本文有收获,可以转发给其他朋友,大家一起学习进步!感兴趣的朋友可以加我微信,拉您进群与业界的大佬们一起交流学习。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 09:46:38 HTTP/2.0 GET : https://f.mffb.com.cn/a/493890.html
  2. 运行时间 : 0.108456s [ 吞吐率:9.22req/s ] 内存消耗:4,705.59kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=7017e38046f5f875e223c3eb45089dee
  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.000573s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000885s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000358s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000283s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000520s ]
  6. SELECT * FROM `set` [ RunTime:0.000240s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000537s ]
  8. SELECT * FROM `article` WHERE `id` = 493890 LIMIT 1 [ RunTime:0.000440s ]
  9. UPDATE `article` SET `lasttime` = 1783043198 WHERE `id` = 493890 [ RunTime:0.019323s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000402s ]
  11. SELECT * FROM `article` WHERE `id` < 493890 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000545s ]
  12. SELECT * FROM `article` WHERE `id` > 493890 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000447s ]
  13. SELECT * FROM `article` WHERE `id` < 493890 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001265s ]
  14. SELECT * FROM `article` WHERE `id` < 493890 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001105s ]
  15. SELECT * FROM `article` WHERE `id` < 493890 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.006425s ]
0.110271s