MySQL 8.0 OCP 英文题库解析(三)

news2025/5/16 5:41:55

Oracle 为庆祝 MySQL 30 周年,截止到 2025.07.31 之前。所有人均可以免费考取原价245美元的MySQL OCP 认证。

从今天开始,将英文题库免费公布出来,并进行解析,帮助大家在一个月之内轻松通过OCP认证。

微信图片_20250507171214.png

本期公布试题16~25

试题16:


choose two.Examine the modified output:mysql> 
SHOW SLAVE STATUS\G
******************1. row******************** 
Slave_IO_Running:Yes
Slave_SQL_Running:Yes 
Seconds_Behind_Master:1612 
Seconds_Behind_Master value is steadily growing. What are two possible causes? 


B)This value shows only I/O latency and is not indicative of the size of the transaction queue. [错误] 

A)The master is producing a large volume of events in parallel but the slave is processing them serially. [正确] 

C)One or more large tables do not have primary keys. [错误] 

E)The parallel slave threads are experiencing lock contention. [错误] 

D)The master is most probably too busy to transmit data and the slave needs to wait for more data. [正确]

解析

本题考查主从问题,从题目中可以看到IO线程和SQL线程均正常,延迟有1612秒,题目问造成主从延迟持续稳定增长的两种可能的原因是什么?


B)This value shows only I/O latency and is not indicative of the size of the transaction queue.  [错误] 
该值仅显示 I/O 延迟,并不表示事务队列的大小。
该指标反映的是SQL线程与I/O线程的整体延迟,不仅是I/O延迟

A)The master is producing a large volume of events in parallel but the slave is processing them serially. [正确] 
主服务器正在并行生成大量事件,但从服务器正在串行处理它们。这是造成延迟的一个原因之一,正确。


C)One or more large tables do not have primary keys. [错误]
一个或多个大型表没有主键。无主键表会导致复制效率降低,但不会直接表现为延迟持续增长

E)The parallel slave threads are experiencing lock contention. [错误] 
并行从属线程遇到锁争用。并行复制线程锁竞争会导致延迟波动,而非稳定增长


D)The master is most probably too busy to transmit data and the slave needs to wait for more data. [正确]
主服务器很可能太忙而无法传输数据,而从服务器需要等待更多数据。

选项正确原因:
    主库网络带宽不足或负载过高时,Binlog传输速度会变慢
    从库I/O线程无法及时获取新事件,导致SQL线程空闲等待
    表现为Slave_IO_Running: Yes但延迟持续增加

对于选项A的情况,可考虑启用从库的并行复制功能(slave_parallel_workers)
对于选项D的情况,需检查主库网络状况和binlog_dump线程状态

试题17:

Choose two.Which two are true about binary logs used in asynchronous replication? 
A)The master connects to the slave and initiates log transfer. [错误] 
B)They contain events that describe all queries run on the master. [错误] 
D)They are pulled from the master to the slave. [正确] 
C)They contain events that describe database changes on the master. [正确] 
E)They contain events that describe only administrative commands run on the master. [错误] 

解析

关于异步复制中使用的二进制日志,哪两个是正确的?

A)The master connects to the slave and initiates log transfer. [错误] 
主服务器连接到从服务器并启动日志传输。
错误 - 主库不会主动连接从库,复制方向完全由从库发起

B)They contain events that describe all queries run on the master. [错误] 
它们包含描述在 master 上运行的所有查询的事件。
错误 - 二进制日志不记录所有查询(如SELECT/show等只读操作不会被记录)

D)They are pulled from the master to the slave. [正确] 
它们从 master 拉到 slave。

C)They contain events that describe database changes on the master. [正确] 
它们包含描述主服务器上的数据库更改的事件。
二进制日志记录的是"数据变更事件"(如DML语句、表结构变更等),而非原始SQL语句
以"事件"形式记录能保证跨版本兼容性和确定性执行
注意:binlog_format=ROW时记录行变更,STATEMENT时记录原始SQL(但仍是事件形式封装)

E)They contain events that describe only administrative commands run on the master. [错误] 它们包含仅描述在主服务器上运行的管理命令的事件
不仅记录管理命令,所有数据变更(INSERT/UPDATE等)都会记录

试题18:

You have appropriate privileges and are about to shut down a running MySQL server process on Oracle Linux 7.Which three are valid methods that will shut down the MySQL server? 

E)mysqld_safe --shutdown [错误] 
A)mysqld_safe -S /tmp/mysql.sock SHUTDOWN [错误] 
B)kill mysqld_safe [错误] 
F)systemctl stop mysqld  [正确] 
G)mysql> SHUTDOWN; [正确] 
D)mysql -S /tmp/mysql.sock --shutdown [错误] 
C)mysqladmin shutdown  [正确]

解析

您具有适当的权限,并且即将关闭 Oracle Linux 7 上正在运行的 MySQL 服务器进程。哪三种方法是将关闭 MySQL 服务器的有效方法?


E)mysqld_safe --shutdown [错误] 
mysqld_safe不支持--shutdown参数(这是早期版本的误传)

A)mysqld_safe -S /tmp/mysql.sock SHUTDOWN [错误] 
mysqld_safe没有-S参数,也不接受SHUTDOWN指令

B)kill mysqld_safe [错误] 
直接kill mysqld_safe进程可能导致非正常关闭

F)systemctl stop mysqld  [正确] 

G)mysql> SHUTDOWN; [正确] 

D)mysql -S /tmp/mysql.sock --shutdown [错误] 
mysql客户端没有--shutdown参数

C)mysqladmin shutdown  [正确]
MySQL官方提供的管理工具

试题19:

Choose two.Examine this MySQL Shell command:dba.rebootClusterFromCompleteOutage () Which two statements are true? 

E)It reconfigures InnoDB Cluster if the cluster was stopped. [错误] 
D)It performs InnoDB Cluster instances rolling restart. [正确] 
A)It stops and restarts all InnoDB Cluster instances and initializes the metadata. [错误] 
F)It picks the minimum number of instances necessary to rebuild the quorum and reconfigures 
InnoDB Cluster. [错误] 
C)It is not mandatory that all instances are running and reachable before running the command. [正确] 
B)It only stops and restarts all InnoDB Cluster instances. [错误] 
G)It only starts all InnoDB Cluster instances. [错误] 

解析

本题考查mysql shell的使用,dba.rebootClusterFromCompleteOutage() 是 MySQL Shell 中用于 从完全宕机状态恢复 InnoDB Cluster 的关键命令,主要解决集群因意外故障导致所有节点不可用后的恢复问题。

正确选项:
D) 执行InnoDB Cluster实例的滚动重启
C) 运行该命令前不要求所有实例都必须在线且可访问


E)It reconfigures InnoDB Cluster if the cluster was stopped. [错误] 
如果集群已停止,它会重新配置 InnoDB Cluster
错误:描述不准确,该命令专为完全宕机场景设计

D)It performs InnoDB Cluster instances rolling restart. [正确] 
它执行 InnoDB Cluster 实例滚动重启

A)It stops and restarts all InnoDB Cluster instances and initializes the metadata. [错误] 
它会停止并重新启动所有 InnoDB Cluster 实例并初始化元数据。
错误,不会显式停止实例,而是针对已停止的集群进行恢复

F)It picks the minimum number of instances necessary to rebuild the quorum and reconfigures InnoDB Cluster. [错误] 
它选择重建 quorum 所需的最小实例数并重新配置 InnoDB Cluster。
错误:不是选择"最少实例",而是基于现存实例重建仲裁

C)It is not mandatory that all instances are running and reachable before running the command. [正确] 
在运行命令之前,并非所有实例都正在运行且可访问。

B)It only stops and restarts all InnoDB Cluster instances. [错误] 
它仅停止并重新启动所有 InnoDB Cluster 实例。
错误:并非简单重启,重点是重建集群元数据和拓扑

G)It only starts all InnoDB Cluster instances. [错误] 
它仅启动所有 InnoDB Cluster 实例
错误:包含元数据重建等复杂操作,非单纯启动实例

试题20:

Choose two.Examine this command and output:(见下图)Which two options will improve the security of the MySQL instance?
图片.png

D)Change the parent directory owner and group to mysql. [错误] 
A)Remove the world read/execute privilege from the accounting directory. [正确] 
F)Remove group read/write privileges from the private_key.pem file. [正确] 
E)Remove world read privileges from the server-cert.pem certificate file. [错误] 
B)Remove world read privileges from the public_key.pem file. [错误] 
C)Change the group ownership of the mysql directory to the mysql user group. [错误] 

解析

哪两个选项将提高 MySQL 实例的安全性?


A) 移除accounting目录的全局读/执行权限
F) 移除private_key.pem文件的组读写权限

D)Change the parent directory owner and group to mysql. [错误] 
修改父目录属主为mysql
父目录已属于mysql:mysql,无需修改(且可能影响其他服务)。

A)Remove the world read/execute privilege from the accounting directory. [正确] 
目录权限为 drwxrwxr-x 表示其他用户(world)有读和执行权限,可能导致未授权用户遍历目录内容。

F)Remove group read/write privileges from the private_key.pem file. [正确] 
private_key.pem权限为 rw-rw---- 表示同组用户有读写权限,私钥文件应严格限制访问。

E)Remove world read privileges from the server-cert.pem certificate file. [错误] 
移除server-cert.pem的全局读权限
证书文件(权限rw-r--r--)需被客户端读取,限制后会导致连接失败。

B)Remove world read privileges from the public_key.pem file. [错误] 
移除public_key.pem的全局读权限
公钥本身设计为可公开分发,无需限制读取(权限rw-r--r--已合理)。

C)Change the group ownership of the mysql directory to the mysql user group. [错误] 
修改 mysql 目录的组所有权为 mysql 用户组
无需更改。

试题21:

Choose two.Which two statements are true about general tablespaces? 
A)General tablespaces support temporary tables. [错误] 
B)Dropping a table from a general tablespace releases the space back to the operating system. [错误] 
C)An existing table can be moved into a general tablespace. [正确] 
E)A new table can be created explicitly in a general tablespace. [正确] 
D)A general tablespace can have multiple data files. [错误] 

解析

这道题和试题13一模一样,只是选项换了换。再来看下general 表空间的使用

A)General tablespaces support temporary tables. [错误] 
B)Dropping a table from a general tablespace releases the space back to the operating system. [错误] 
C)An existing table can be moved into a general tablespace. [正确] 
E)A new table can be created explicitly in a general tablespace. [正确] 
D)A general tablespace can have multiple data files. [错误] 


本题考查general表空间的使用
B)Dropping a table from a general tablespace releases the space back to the operating system. [错误]
从通用表空间删除表会释放空间回操作系统
错误:通用表空间的空间不会自动释放回操作系统
需要手动执行ALTER TABLESPACE … DROP DATAFILE来释放空间

D) 一个通用表空间可以有多个数据文件
错误:每个通用表空间只能有一个数据文件(.ibd文件)
但可以动态扩展这个数据文件的大小

A) 通用表空间支持临时表
错误:通用表空间不支持临时表
临时表只能存储在临时表空间或独立表空间中

E) 可以显式地在通用表空间中创建新表
使用CREATE TABLE … TABLESPACE tablespace_name语法
例如:CREATE TABLE t1 (id INT) TABLESPACE ts1;

C) 可以将现有表移动到通用表空间中
使用ALTER TABLE … TABLESPACE语法
例如:ALTER TABLE t1 TABLESPACE ts1;

试题22:

Choose three.Examine this command, which executes successfully:cluster.addInstance( ' 
<user>@<host>:<port>' , recoveryMethod:' clone ') 
Which three statements are true? 

D)The account used to perform this recovery needs the BACKUP_ADMIN privilege. [正确] 
E)A new instance is installed, initialized, and provisioned with data from an instance already in the 
cluster and joined to the cluster. [错误] 
B)InnoDB tablespaces outside the datadir are able to be cloned. [正确] 
C)A target instance must exist, then it will be provisioned with data from an instance already in the 
cluster and joined to the cluster. [正确] 
A)It is always slower than recoveryMethod:' incremental ' . [错误] 
F)InnoDB redo logs must not rotate for the duration of the execution; otherwise, the recovery will 
fail. [错误] 

解析

下是关于 cluster.addInstance() 使用 recoveryMethod: ‘clone’ 方法的三个正确选项及其解析:


D)The account used to perform this recovery needs the BACKUP_ADMIN privilege. [正确] 
执行此恢复操作的账户需要 BACKUP_ADMIN 权限

E)A new instance is installed, initialized, and provisioned with data from an instance already in the 
cluster and joined to the cluster. [错误] 
新实例会被安装、初始化并直接从集群中的实例克隆数据后加入集群
错误原因:clone 恢复方法 不会自动安装 MySQL 实例,仅适用于已存在但无数据的实例。

B)InnoDB tablespaces outside the datadir are able to be cloned. [正确] 
可以克隆位于 datadir 之外的 InnoDB 表空间
克隆操作会复制所有 InnoDB 表空间,包括使用 CREATE TABLESPACE 创建的通用表空间(即使不在默认数据目录内)。
例外:临时表空间(temporary tablespaces)不会被克隆。

C)A target instance must exist, then it will be provisioned with data from an instance already in the 
cluster and joined to the cluster. [正确] 
目标实例必须已存在,随后会从集群中的现有实例克隆数据并加入集群

A)It is always slower than recoveryMethod:' incremental ' . [错误] 
它总是比 recoveryMethod: 'incremental' 慢
错误原因:克隆速度取决于数据量,增量恢复(incremental)可能更慢(需应用大量 binlog)。

F)InnoDB redo logs must not rotate for the duration of the execution; otherwise, the recovery will fail. [错误] 
执行期间 InnoDB 重做日志不能轮转,否则恢复会失败
错误原因:克隆过程不依赖重做日志(redo log),而是直接复制数据文件,日志轮转不影响操作。


试题23:

Choose three.Which three sets of item information are visible in the mysql system database? 
G)information about table structures [错误] 
F)rollback segments [错误] 
E)performance monitoring information [错误] 
C)plugins [正确] 
D)audit log events [错误] 
B)help topics [正确] 
A)time zone information and definitions [正确]

解析

mysql 系统数据库中可以看到哪三组监控项信息?

G)information about table structures [错误] 
表结构信息
实际存储位置:表结构(元数据)存储在 information_schema 或 performance_schema 数据库,而非 mysql 库。

F)rollback segments [错误]
回滚段信息
实际存储位置:InnoDB 回滚段信息可通过 information_schema.innodb_trx 或 performance_schema 查看,与 mysql 库无关。
 
E)performance monitoring information [错误] 
性能监控信息
实际存储位置:性能数据主要在 performance_schema 或 sys 数据库,mysql 库不存储监控数据。

C)plugins [正确] 
mysql.plugin 表存储已安装的插件信息(如认证插件、存储引擎插件等)。

D)audit log events [错误] 
审计日志事件
实际存储位置:若启用审计日志,通常存储于专用文件或 audit_log 插件管理的表中,默认不在 mysql 库。

B)help topics [正确] 
mysql.help_topic 表包含 MySQL 内置的帮助文档内容(如 SQL 语法说明)。

A)time zone information and definitions [正确]
时区信息与定义 (time zone information)
mysql.time_zone* 系列表存储时区数据(需手动加载)
关键表:
    mysql.time_zone:时区名称
    mysql.time_zone_leap_second:闰秒信息
    mysql.time_zone_transition:时区转换规则

试题24:

Which two situations will cause the binary log to rotate? 
A)FLUSH HOSTS executed [错误] 
D)SET sql_ log bin-1 executed [错误] 
C)max_ binloq cache size exceeded [错误] 
B)max binlog_size exceeded [正确] 
F)FLUSH LOGS executed [正确] 
E)SET syne binlog-l executed1 [错误]

解析

哪两种情况会导致 binlog 切换?

A)FLUSH HOSTS executed [错误] 
执行 FLUSH HOSTS
清空主机缓存(如连接错误记录),与二进制日志无关。

D)SET sql_log bin-1 executed [错误] 
执行 SET sql_log_bin=0
临时禁用当前会话的二进制日志记录,不会触发轮换。

C)max_binlog cache size exceeded [错误] 
max_binlog_cache_size 超出限制
控制单个事务允许的最大缓存大小,超限会报错(Multi-statement transaction required more than 'max_binlog_cache_size'),但不会轮换日志文件。

B)max binlog_size exceeded [正确] 
当当前二进制日志文件大小达到 max_binlog_size 参数(默认 1GB)时,MySQL 会自动创建一个新的二进制日志文件。
注意:实际文件可能略微超过设定值,因为轮换仅在事务完成后触发。

F)FLUSH LOGS executed [正确] 
手动执行 FLUSH LOGS 会强制关闭当前二进制日志文件并立即创建一个新文件。

E)SET sync_binlog l executed1 [错误]
控制制二进制日志同步到磁盘的频率,不触发轮换

试题25:

Choose three.Which three statements are true about MySQL replication? 
D) Any instance can have multiple slaves, but it can have only one master. [错误] 
G) Binary logging must be enabled on the master in order to replicate to other instances. [正确] 
E) Binary logs contain only transactions originating from a single MySQL instance. [错误] 
F) Replication can use only TCP/IP connections. [正确] 
C) Each instance in a replication topology must have a unique server ID. [正确] 
A) Each slave must have its own MySQL user for replication. [错误] 
B) A replication user must have the SELECT privilege for all tables that need to be replicated. [错误]

解析

关于 MySQL 复制,哪三个陈述是正确的?

D) Any instance can have multiple slaves, but it can have only one master. [错误]
任何实例可以有多个从库,但只能有一个主库
错误原因:MySQL 支持多主复制(如环形复制、组复制),并非只能单主。 

G) Binary logging must be enabled on the master in order to replicate to other instances. [正确] 
主库必须启用二进制日志(Binary Log)才能复制到其他实例

E) Binary logs contain only transactions originating from a single MySQL instance. [错误] 
二进制日志仅包含来自单个 MySQL 实例的事务
错误原因:二进制日志记录所有数据变更,包括来自其他实例的中继事件(在级联复制中)。

F) Replication can use only TCP/IP connections. [正确] 
复制仅能使用 TCP/IP 连接,MySQL 复制默认通过 TCP/IP 协议通信,不支持 Unix Socket 或其他协议。

C) Each instance in a replication topology must have a unique server ID. [正确] 
复制拓扑中的每个实例必须具有唯一的 server ID
server_id 用于标识复制拓扑中的每个节点,必须全局唯一(否则导致数据混乱)。

A) Each slave must have its own MySQL user for replication. [错误] 
每个从库必须有自己的 MySQL 复制用户
错误原因:所有从库可共享同一个主库的复制账号(只需主库授权一次)。

B) A replication user must have the SELECT privilege for all tables that need to be replicated. [错误]
复制用户需要对所有复制的表具有 SELECT 权限
错误原因:复制用户仅需 REPLICATION SLAVE 权限,无需数据读取权限

未完,待续。后续题库会陆续发出,请关注。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2376612.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Docker容器启动失败?无法启动?

Docker容器无法启动的疑难杂症解析与解决方案 一、问题现象 Docker容器无法启动是开发者在容器化部署中最常见的故障之一。尽管Docker提供了丰富的调试工具&#xff0c;但问题的根源往往隐藏在复杂的配置、环境依赖或资源限制中。本文将从环境变量配置错误这一细节问题入手&am…

MySQL 数据类型全面指南:从理论到实践

在数据库设计和开发中&#xff0c;数据类型的选择是构建高效、可靠系统的基石。MySQL作为最流行的关系型数据库之一&#xff0c;提供了丰富的数据类型以满足各种数据存储需求。本文将全面介绍MySQL的数据类型体系&#xff0c;通过理论讲解和实际示例&#xff0c;帮助开发者做出…

uniapp(微信小程序)>关于父子组件的样式传递问题(自定义组件样式穿透)

在父组件中给子组件添加类名,子组件的样式由父组件决定 由于"微信小程序"存在【样式隔离机制】&#xff0c;且默认设置为isolated(启用样式隔离)&#xff0c;因此这里给出以下两种解决方案&#xff1a; // 小程序编译机制 1. 当 <style scoped> 存在时&#…

【HCIA】BFD

前言 前面我们介绍了浮动路由以及出口路由器的默认路由配置&#xff0c;可如此配置会存在隐患&#xff0c;就是出口路由器直连的网络设备并不是运营商的路由器&#xff0c;而是交换机。此时我们就需要感知路由器的存活状态&#xff0c;这就需要用到 BFD&#xff08;Bidirectio…

计算机视觉最不卷的方向:三维重建学习路线梳理

提到计算机视觉&#xff08;CV&#xff09;&#xff0c;大多数人脑海中会立马浮现出一个字&#xff1a;“卷”。卷到什么程度呢&#xff1f;2022年秋招CV工程师岗位数下降了16%&#xff0c;但求职人数增加了23%&#xff0c;求职人数与招聘岗位的比例达到了恐怖的15:1&#xff0…

android抓包踩坑记录

​ 由于需要公司业务需求&#xff0c;需要抓取APP中摄像机插件的网络包&#xff0c;踩了两天坑&#xff0c;这里做个总结吧。 事先准备 android-studio emulatesdk 需要android模拟器和adb调试工具。如果已经有其他模拟器的话&#xff0c;可以只安装adb调试工具即可 mitmproxy…

Webpack其他插件

安装html打包插件 const path require(path); const HtmlWebpackPlugin require(html-webpack-plugin) module.exports {entry: path.resolve(__dirname,src/login/index.js),output: {path: path.resolve(__dirname, dist),filename: ./login/index.js,clean:true},Plugin:…

Python Matplotlib 库【绘图基础库】全面解析

让AI成为我们的得力助手&#xff1a;《用Cursor玩转AI辅助编程——不写代码也能做软件开发》 一、发展历程 Matplotlib 由 John D. Hunter 于 2003 年创建&#xff0c;灵感来源于 MATLAB 的绘图系统。作为 Python 生态中最早的可视化工具之一&#xff0c;它逐渐成为科学计算领…

C++ string数据查找、string数据替换、string子串获取

string查找示例见下&#xff0c;代码见下&#xff0c;以及对应运行结果见下&#xff1a; #include<iostream>using namespace std;int main() {// 1string s1 "hellooooworld";cout << s1.find("oooo") << endl;// 2cout << (in…

关于甲骨文(oracle cloud)丢失MFA的解决方案

前两年&#xff0c;申请了一个招商的多币种信用卡&#xff0c;然后就从网上撸了一个oracle的免费1h1g的服务器。 用了一段时间&#xff0c;人家要启用MFA验证。 啥叫MFA验证&#xff0c;类似与短信验证吧&#xff0c;就是绑定一个手机&#xff0c;然后下载一个app&#xff0c;每…

【网络编程】七、详解HTTP 搭建HTTP服务器

文章目录 Ⅰ. HTTP协议的由来 -- 万维网Ⅱ. 认识URL1、URL的格式协议方案名登录信息 -- 忽略服务器地址服务器端口号文件路径查询字符串片段标识符 2、URL的编码和解码 Ⅲ. HTTP的报文结构1、请求协议格式2、响应协议格式&#x1f38f; 写代码的时候&#xff0c;怎么保证请求和…

[Java实战]Spring Boot 快速配置 HTTPS 并实现 HTTP 自动跳转(八)

[Java实战]Spring Boot 快速配置 HTTPS 并实现 HTTP 自动跳转(八) 引言 在当今网络安全威胁日益严峻的背景下&#xff0c;为 Web 应用启用 HTTPS 已成为基本要求。Spring Boot 提供了简单高效的方式集成 HTTPS 支持&#xff0c;无论是开发环境测试还是生产环境部署&#xff0…

CVPR计算机视觉顶会论文解读:IPC-Dehaze 如何解决真实场景去雾难题

【CVPR 2025】迭代预测-评判编解码网络&#xff1a;突破真实场景去雾的极限 摘要 本文提出了一种名为IPC-Dehaze的创新去雾方法&#xff0c;通过迭代预测-评判框架和码本解码机制&#xff0c;有效解决了现有去雾算法在复杂场景下的性能瓶颈。该方法在多个基准测试中取得了SOT…

ppy/osu构建 ipad作为osu按键xz笔记2 deepwiki websokect

ipad当x和z键玩osu #无声打osu#没磁轴怎么打osu 下载 .NET (Linux、macOS 和 Windows) | .NET dotnet还行 构建&#xff1a;f5 运行&#xff1a;dotnet run --project osu.Desktop -c Debug deepwiki就是nb uinput是ubuntu的我现在没法调试&#xff0c;放着 import asyn…

.NET程序启动就报错,如何截获初期化时的问题json

一&#xff1a;背景 1. 讲故事 前几天训练营里的一位朋友在复习课件的时候&#xff0c;程序一跑就报错&#xff0c;截图如下&#xff1a; 从给出的错误信息看大概是因为json格式无效导致的&#xff0c;在早期的训练营里曾经也有一例这样的报错&#xff0c;最后定位下来是公司…

nacos:服务注册原理

目录 NaCos服务注册原理1、AbstractAutoServiceRegistration功能和作用onApplicationEvent()方法start()方法 2、NacosAutoServiceRegistration功能和作用NacosAutoServiceRegistration.register()方法AbstractAutoServiceRegistration.register()方法 3、NacosServiceRegistry…

基于开源AI大模型与S2B2C生态的个人品牌优势挖掘与标签重构研究

摘要&#xff1a;在数字文明时代&#xff0c;个人品牌塑造已从传统经验驱动转向数据智能驱动。本文以开源AI大模型、AI智能名片与S2B2C商城小程序源码为技术载体&#xff0c;提出"社会评价-数据验证-标签重构"的三维分析框架。通过实证研究发现&#xff0c;结合第三方…

polarctf-web-[简单rce]

考点&#xff1a; (1)RCE(eval函数) (2)执行函数(passthru函数) (3)/顶级(根)目录查看 (4)sort排序查看函数 题目来源&#xff1a;Polarctf-web-[简单rce] 解题&#xff1a; 代码审计 <?php/*​PolarD&N CTF​*/highlight_file(__FILE__);function no($txt){ # …

深入理解 Cortex-M3 特殊寄存器

在上一篇文章中分享了 Cortex-M3 内核寄存器组的相关知识&#xff0c;实际上除了内核寄存器组外&#xff0c;CM3 处理器中还存在多个特殊寄存器&#xff0c;它们分别为 程序状态寄存器&#xff0c;中断/异常屏蔽寄存器 和 控制寄存器。 需要注意的是&#xff0c;特殊寄存器未经…

[Java实战]Spring Boot 3 整合 Ehcache 3(十九)

[Java实战]Spring Boot 3 整合 Ehcache 3&#xff08;十九&#xff09; 引言 在微服务和高并发场景下&#xff0c;缓存是提升系统性能的关键技术之一。Ehcache 作为 Java 生态中成熟的内存缓存框架&#xff0c;其 3.x 版本在性能、功能和易用性上均有显著提升。本文将详细介绍…