xtrabackup2.4

xtrabackup2.4只能备份5.*版本

[root@k8s-131 src]# mysql -V
mysql  Ver 14.14 Distrib 5.7.35, for linux-glibc2.12 (x86_64) using  EditLine wrapper
[root@k8s-131 src]# ll
total 658516
-rw-r--r--. 1 7161 31415 666328842 Jun  7  2021 mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz
-rw-r--r--. 1 root root    7987620 Apr  2 13:39 percona-xtrabackup-24-2.4.25-1.el7.x86_64.rpm
[root@k8s-131 src]#
[root@k8s-131 src]#
[root@k8s-131 src]# yum -y install p
Display all 1140 possibilities? (y or n)^C
[root@k8s-131 src]# ll
total 658516
-rw-r--r--. 1 7161 31415 666328842 Jun  7  2021 mysql-5.7.35-linux-glibc2.12-x86_64.tar.gz
-rw-r--r--. 1 root root    7987620 Apr  2 13:39 percona-xtrabackup-24-2.4.25-1.el7.x86_64.rpm
[root@k8s-131 src]# yum -y install percona-xtrabackup-24-2.4.25-1.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining percona-xtrabackup-24-2.4.25-1.el7.x86_64.rpm: percona-xtrabackup-24-2.4.25-1.el7.x86_64
Marking percona-xtrabackup-24-2.4.25-1.el7.x86_64.rpm to be installed
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.25-1.el7 will be installed
--> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-24-2.4.25-1.el7.x86_64
Determining fastest mirrors* base: mirrors.bfsu.edu.cn* extras: mirrors.ustc.edu.cn* updates: mirrors.ustc.edu.cn
base                                                                                                                                               | 3.6 kB  00:00:00
docker-ce-stable                                                                                                                                   | 3.5 kB  00:00:00
extras                                                                                                                                             | 2.9 kB  00:00:00
updates                                                                                                                                            | 2.9 kB  00:00:00
(1/3): extras/7/x86_64/primary_db                                                                                                                  | 254 kB  00:00:00
(2/3): updates/7/x86_64/primary_db                                                                                                                 |  26 MB  00:00:01
(3/3): docker-ce-stable/7/x86_64/primary_db                                                                                                        | 140 kB  00:00:03
--> Processing Dependency: perl(Digest::MD5) for package: percona-xtrabackup-24-2.4.25-1.el7.x86_64
--> Processing Dependency: rsync for package: percona-xtrabackup-24-2.4.25-1.el7.x86_64
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.25-1.el7.x86_64
--> Running transaction check
---> Package libev.x86_64 0:4.15-7.el7 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed
--> Processing Dependency: perl(DBI::Const::GetInfoType) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
--> Processing Dependency: perl(DBI) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
---> Package perl-Digest-MD5.x86_64 0:2.52-3.el7 will be installed
--> Processing Dependency: perl(Digest::base) >= 1.00 for package: perl-Digest-MD5-2.52-3.el7.x86_64
---> Package rsync.x86_64 0:3.1.2-12.el7_9 will be installed
--> Running transaction check
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: perl-DBI-1.627-4.el7.x86_64
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
--> Running transaction check
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved==========================================================================================================================================================================Package                                   Arch                     Version                            Repository                                                    Size
==========================================================================================================================================================================
Installing:percona-xtrabackup-24                     x86_64                   2.4.25-1.el7                       /percona-xtrabackup-24-2.4.25-1.el7.x86_64                    31 M
Installing for dependencies:libev                                     x86_64                   4.15-7.el7                         extras                                                        44 kperl-Compress-Raw-Bzip2                   x86_64                   2.061-3.el7                        base                                                          32 kperl-Compress-Raw-Zlib                    x86_64                   1:2.061-4.el7                      base                                                          57 kperl-DBD-MySQL                            x86_64                   4.023-6.el7                        base                                                         140 kperl-DBI                                  x86_64                   1.627-4.el7                        base                                                         802 kperl-Data-Dumper                          x86_64                   2.145-3.el7                        base                                                          47 kperl-Digest                               noarch                   1.17-245.el7                       base                                                          23 kperl-Digest-MD5                           x86_64                   2.52-3.el7                         base                                                          30 kperl-IO-Compress                          noarch                   2.061-2.el7                        base                                                         260 kperl-Net-Daemon                           noarch                   0.48-5.el7                         base                                                          51 kperl-PlRPC                                noarch                   0.2020-14.el7                      base                                                          36 krsync                                     x86_64                   3.1.2-12.el7_9                     updates                                                      408 kTransaction Summary
==========================================================================================================================================================================
Install  1 Package (+12 Dependent packages)Total size: 33 M
Total download size: 1.9 M
Installed size: 36 M
Downloading packages:
perl-DBI-1.627-4.el7.x86_64.rp FAILED                                                                                                   ]  0.0 B/s |    0 B  --:--:-- ETA
http://mirrors.bupt.edu.cn/centos/7.9.2009/os/x86_64/Packages/perl-DBI-1.627-4.el7.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden    ]  0.0 B/s |    0 B  --:--:-- ETA
Trying other mirror.
To address this issue please refer to the below wiki articlehttps://wiki.centos.org/yum-errorsIf above article doesn't help to resolve this issue please use https://bugs.centos.org/.(1/12): libev-4.15-7.el7.x86_64.rpm                                                                                                                |  44 kB  00:00:00
(2/12): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm                                                                                             |  32 kB  00:00:00
(3/12): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm                                                                                              |  57 kB  00:00:00
(4/12): perl-Digest-MD5-2.52-3.el7.x86_64.rpm                                                                                                      |  30 kB  00:00:00
(5/12): perl-Net-Daemon-0.48-5.el7.noarch.rpm                                                                                                      |  51 kB  00:00:00
(6/12): perl-PlRPC-0.2020-14.el7.noarch.rpm                                                                                                        |  36 kB  00:00:00
(7/12): perl-IO-Compress-2.061-2.el7.noarch.rpm                                                                                                    | 260 kB  00:00:00
(8/12): rsync-3.1.2-12.el7_9.x86_64.rpm                                                                                                            | 408 kB  00:00:00
(9/12): perl-DBI-1.627-4.el7.x86_64.rpm                                                                                                            | 802 kB  00:00:00
(10/12): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm                                                                                                     | 140 kB  00:00:01
(11/12): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                                                                   |  47 kB  00:00:01
(12/12): perl-Digest-1.17-245.el7.noarch.rpm                                                                                                       |  23 kB  00:00:01
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                     954 kB/s | 1.9 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                            1/13Installing : perl-Digest-1.17-245.el7.noarch                                                                                                                       2/13Installing : perl-Digest-MD5-2.52-3.el7.x86_64                                                                                                                     3/13Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                           4/13Installing : perl-IO-Compress-2.061-2.el7.noarch                                                                                                                   5/13Installing : libev-4.15-7.el7.x86_64                                                                                                                               6/13Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                   7/13Installing : rsync-3.1.2-12.el7_9.x86_64                                                                                                                           8/13Installing : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                                     9/13Installing : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                      10/13Installing : perl-DBI-1.627-4.el7.x86_64                                                                                                                          11/13Installing : perl-DBD-MySQL-4.023-6.el7.x86_64                                                                                                                    12/13Installing : percona-xtrabackup-24-2.4.25-1.el7.x86_64                                                                                                            13/13Verifying  : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                                     1/13Verifying  : rsync-3.1.2-12.el7_9.x86_64                                                                                                                           2/13Verifying  : percona-xtrabackup-24-2.4.25-1.el7.x86_64                                                                                                             3/13Verifying  : perl-Digest-MD5-2.52-3.el7.x86_64                                                                                                                     4/13Verifying  : perl-DBD-MySQL-4.023-6.el7.x86_64                                                                                                                     5/13Verifying  : perl-IO-Compress-2.061-2.el7.noarch                                                                                                                   6/13Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                   7/13Verifying  : libev-4.15-7.el7.x86_64                                                                                                                               8/13Verifying  : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                           9/13Verifying  : perl-Digest-1.17-245.el7.noarch                                                                                                                      10/13Verifying  : perl-DBI-1.627-4.el7.x86_64                                                                                                                          11/13Verifying  : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                           12/13Verifying  : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                      13/13Installed:percona-xtrabackup-24.x86_64 0:2.4.25-1.el7Dependency Installed:libev.x86_64 0:4.15-7.el7              perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7  perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7  perl-DBD-MySQL.x86_64 0:4.023-6.el7perl-DBI.x86_64 0:1.627-4.el7          perl-Data-Dumper.x86_64 0:2.145-3.el7         perl-Digest.noarch 0:1.17-245.el7            perl-Digest-MD5.x86_64 0:2.52-3.el7perl-IO-Compress.noarch 0:2.061-2.el7  perl-Net-Daemon.noarch 0:0.48-5.el7           perl-PlRPC.noarch 0:0.2020-14.el7            rsync.x86_64 0:3.1.2-12.el7_9Complete!
[root@k8s-131 src]# xtrabackup  -v
xtrabackup: recognized server arguments: --datadir=/usr/local/mysql/data
xtrabackup version 2.4.25 based on MySQL server 5.7.35 Linux (x86_64) (revision id: 90fe9d0)
[root@k8s-131 src]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.35 MySQL Community Server (GPL)Copyright (c) 2000, 2021, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> SHOW VARIABLES LIKE 'default_storage_engine';
+------------------------+--------+
| Variable_name          | Value  |
+------------------------+--------+
| default_storage_engine | InnoDB |
+------------------------+--------+
1 row in set (0.01 sec)mysql>

 生成测试数据

创建用来备份数据的用户 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> create user "back"@"%" identified by "123456";
Query OK, 0 rows affected (0.01 sec)mysql> grant all on *.* to "back"@"%";
Query OK, 0 rows affected (0.00 sec)mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)mysql>

 

[root@k8s-131 src]# xtrabackup --backup --target-dir=/back/full --user=back --password=123456 --host=192.168.25.131 --port=3306
xtrabackup: recognized server arguments: --datadir=/usr/local/mysql/data
xtrabackup: recognized client arguments: --port=3306 --socket=/var/lib/mysql/mysql.sock --backup=1 --target-dir=/back/full --user=back --password=* --host=192.168.25.131 --port=3306
240402 14:02:24  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=192.168.25.131;port=3306;mysql_socket=/var/lib/mysql/mysql.sock' as 'back'  (using password: YES).
240402 14:02:24  version_check Connected to MySQL server
240402 14:02:24  version_check Executing a version check against the server...
240402 14:02:24  version_check Done.
240402 14:02:24 Connecting to MySQL server host: 192.168.25.131, user: back, password: set, port: 3306, socket: /var/lib/mysql/mysql.sock
Using server version 5.7.35
xtrabackup version 2.4.25 based on MySQL server 5.7.35 Linux (x86_64) (revision id: 90fe9d0)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /usr/local/mysql/data
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup:   innodb_data_home_dir = .
xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 2
xtrabackup:   innodb_log_file_size = 50331648
InnoDB: Number of pools: 1
240402 14:02:24 >> log scanned up to (2755856)
xtrabackup: Generating a list of tablespaces....
....
........240402 14:02:25 [01]        ...done
240402 14:02:25 [01] Copying ./test/id.frm to /back/full/test/id.frm
240402 14:02:25 [01]        ...done
240402 14:02:25 Finished backing up non-InnoDB tables and files
240402 14:02:25 Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): '2755847'
xtrabackup: Stopping log copying thread.
.240402 14:02:25 >> log scanned up to (2755856)240402 14:02:25 Executing UNLOCK TABLES
240402 14:02:25 All tables unlocked
240402 14:02:25 [00] Copying ib_buffer_pool to /back/full/ib_buffer_pool
240402 14:02:25 [00]        ...done
240402 14:02:25 Backup created in directory '/back/full/'
240402 14:02:25 [00] Writing /back/full/backup-my.cnf
240402 14:02:25 [00]        ...done
240402 14:02:25 [00] Writing /back/full/xtrabackup_info
240402 14:02:25 [00]        ...done
xtrabackup: Transaction log of lsn (2755847) to (2755856) was copied.
240402 14:02:26 completed OK!

全量备份后,我新增几条数据测试一下 

 

停止数据库 

 [root@k8s-131 mysql]# systemctl stop mysql

删除data数据库目录
[root@k8s-131 mysql]# mv data/ databack

新建data数据库目录

[root@k8s-131 mysql]# mkdir /usr/local/mysql/data/

记得授权
[root@k8s-131 mysql]# chown -R mysql:mysql /usr/local/mysql/data


[root@k8s-131 mysql]# xtrabackup --prepare --apply-log-only --target-dir=/back/full/


[root@k8s-131 mysql]# xtrabackup --prepare --target-dir=/back/full/

# 复制备份数据到新的数据目录
xtrabackup --copy-back --target-dir=/back/full/

 


# 设置新的数据目录的权限
chown -R mysql:mysql /usr/local/mysql/data/*

# 启动 MySQL 服务器
systemctl start mysql

 

 

 查看就是全量备份的数据

完成了

 

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

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

相关文章

最新版弹幕播放器源码,带后台

最新版弹幕播放器源码,带后台 测试正常分享,祝你使用愉快 弹幕后台、前置广告、暂停广告,记忆回放,自动下一集 支持:.m3u8、.mp4、.flv、等常见视频格式,兼容:电脑、手机端 源码截图&#xf…

【新手适用】手把手教你从零开始实现一个基于Pytorch的卷积神经网络CNN三: 如何验证和测试模型

【新手适用】手把手教你从零开始实现一个基于Pytorch的卷积神经网络CNN二: 如何训练模型,内附详细损失、准确率、均值计算-CSDN博客 从零开始实现一个基于Pytorch的卷积神经网络 - 知乎 (zhihu.com) 1 初始化、导入模型和数据集 新建一个test.py文件&a…

基于springboot+vue+Mysql的火车订票管理系统

开发语言:Java框架:springbootJDK版本:JDK1.8服务器:tomcat7数据库:mysql 5.7(一定要5.7版本)数据库工具:Navicat11开发软件:eclipse/myeclipse/ideaMaven包:…

uniapp 开发之原生Android插件

开发须知 在您阅读此文档时,我们假定您已经具备了相应Android应用开发经验,使用Android Studio开发过Android原生。也应该对HTML,JavaScript,CSS等有一定的了解, 并且熟悉在JavaScript和JAVA环境下的JSON格式数据操作等。 为了插件开发者更方便快捷的开…

pyside6/pyqt5/pyside2/pyqt6绘制图形

虽然可以在 PySide6 中嵌入 matplotlib 图,但这种体验并不完全是原生的。对于简单且高度交互的绘图,您可能需要考虑改用 PyQtGraph。PyQtGraph 建立在 PySide6 原生 QGraphicsScene 之上,提供更好的绘图性能,特别是对于实时数据&a…

试过了,ChatGPT确实不用注册就可以使用了!

看到官网说不用登录也可以直接使用ChatGPT 我们来试一下 直接打开官网 默认是直接进入了chatgpt3.5的聊天界面 之前是默认进的登录页面 聊一下试试 直接回复了,目前属于未登录状态,挺好! 来试下ChatGPT4 跳转到了登录页面 目前来看gpt4还…

HTML常用文本标签以及注释文本

目录 前言: 1.标题标签: 前言: 实践: 总结: 2.段落标签: 前言: 段落中的空格: 总结: 3.文本格式化标签: 前言: 和标签的区别: 和标记之间的区别: 总结: 4.如…

go入门到精通

初识Go语言 Go语言介绍 Go语言是什么 2009年11月10日,Go语言正式成为开源编程语言家庭的一员。 Go语言(或称Golang)是云计算时代的C语言。Go语言的诞生是为了让程序员有更高的生产效率,Go语言专门针对多处理器系统应用程序的编…

Spring面试常见问题

目录 1、为什么要用Spring框架?2、有了spring为什么又出现了 springboot?3、springboot出现后为什么又出现了spring cloud?4、SpringBoot自动配置(重点)5、SpringBoot启动流程(重点)6、简单谈一…

在Linux中创建新用户的三种方法,总有一种适合你

将用户添加到Linux计算机是一项基本的管理任务,有几种方法可以实现这一点。每种创建用户的方法都有优点和缺点,我们将向你介绍三种不同的用户创建方法。 Linux计算机为什么需要用户 一台没有用户的个人计算机用处并不大。Linux支持多个用户。无论他们是同时登录并共享计算机…

PostgreSQL PGCA/PGCE/PGCM包通过率

PostgreSQL认证课程一共分为三个等级(PGCA-PGCE-PGCM),特别注意:参加认证须有同级别合格培训记录,且不可跳级报考 PGCA-PGCE-PGCM都是线上考试,每两个月一次全国统考,详细考试时间可以参考下方表…

github拉取的项目添加至自己的仓库

想把GitHub的开源项目拉到本地进行二开,研究了一下上传到gitee的步骤: 步骤 gitee新建仓库,仓库名与本地文件夹的名称一致,建好后gitee的页面也会有显示git命令 打开项目目录,右键打开git bash(或者在gi…

照片改格式怎么改?这两种方法帮你解决

不同的平台和应用程序可能对照片格式有不同的要求,将照片转换为适当的格式可以确保它们在网页、社交媒体、聊天应用等上加载和显示良好,常见的网络可接受的照片格式包括jpg、png和webp,那么怎么去将照片改格式呢?下面介绍几个比较简单的方法…

C# WPF编程-元素绑定

C# WPF编程-元素绑定 将元素绑定到一起绑定表达式绑定错误绑定模式代码创建绑定移除绑定使用代码检索绑定多绑定绑定更新绑定延时 数据绑定是一种关系,该关系告诉WPF从源对象提取一下信息,并用这些信息设置目标对象的属性。目标属性始终是依赖项属性&…

oracle19c安装-aarch64

建议 参考oracle官方文档提供的软硬件要求 https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/operating-system-checklist-for-oracle-database-installation-on-linux.html#GUID-E5C0A90E-7750-45D9-A8BC-C7319ED934F0 建议使用OracleLinux8.6及以上操作…

数据结构:非比较排序

非比较排序都具有很大的局限性,包括技术排序,基数排序,桶排序等 计数排序 时间复杂度:O(N) 空间复杂度:O(range) 适用范围 数据的范围集中的数组进行排序,不适合数据分散的数组 方法 统计每个数据出现的次数为n 建立一个相同大小的数组,将每个数据都初始化为0 然后遍历…

niushop单商户V5多店版源码分享三端uniapp打包方法包括PC端_小程序或h5端打包_收银端打包_APP端打包_商户端

目前多店版有四端uniapp,包括PC端uniapp,商家端uniapp,收银端uniapp,门店手机端uniapp,下面我总结下这些端的打包流程希望能帮助到大家,需要交流的可以看我昵称或者点我头像关注我分享代码和教程 一.niush…

【微众银行笔试题汇总】 2024-03-31-微众银行春招笔试题-三语言题解(CPP/Python/Java)

🍭 大家好这里是KK爱Coding ,一枚热爱算法的程序员 ✨ 本系列打算持续跟新微众银行近期的春秋招笔试题汇总~ 💻 ACM银牌🥈| 多次AK大厂笔试 | 编程一对一辅导 👏 感谢大家的订阅➕ 和 喜欢&…

Java面试必问题24:线程池的拒绝策略有哪些 synchronized 和 lock 的区别 (重点)

以上列出的是Java线程池中常见的拒绝策略,具体可以根据实际情况选择合适的拒绝策略,也可以自定义实现RejectedExecutionHandler接口来定义自己的拒绝策略。默认的拒绝策略是AbortPolicy,即直接抛出异常。 最简回答:线程池的拒绝策…

YOLOv9改进策略:主干系列 | Transformer架构ConvNeXt 网络在检测中大放异彩

💡💡💡本文改进内容:Transformer架构 ConvNeXt 网络在图像分类和识别、分割领域大放异彩,同时对比 Swin-T 模型,在多种任务中其模型的大小和准确率均有一些提升,模型的 FLOPs 较大的减小且 Acc 有部分提高。 💡💡💡将此Transformer ConvNeXt 网络引入到YOLOv9…