openEuler24.03 LTS下安装MySQL8.0.42

news2025/5/18 19:08:42

目录

前提步骤

删除原有mysql及maridb数据库

安装MySQL

启动MySQL

启动查看MySQL状态

设置MySQL开机自启动

查看登录密码

登录MySQL

修改密码及支持远程连接

远程连接MySQL


前提步骤

拥有openEuler24.03 LTS环境,可参考:Vmware下安装openEuler24.03 LTS

删除原有mysql及maridb数据库

如果原来有mysql或maridb数据库,请先备份数据,再进行删除操作。

$ sudo rpm -qa | grep -i 'mysql\|mariadb' | xargs -n1 sudo rpm -e --nodeps 2>/dev/null

$ sudo rm -rf /var/lib/mysql* /var/log/mysql /usr/lib64/mysql /etc/my.cnf* /usr/my.cnf

操作过程如下

[liang@node1 ~]$ sudo rpm -qa | grep -i 'mysql\|mariadb' | xargs -n1 sudo rpm -e --nodeps 2>/dev/null
[liang@node1 ~]$ sudo rm -rf /var/lib/mysql* /var/log/mysql /usr/lib64/mysql /etc/my.cnf* /usr/my.cnf

安装MySQL

直接使用yum命令安装mysql服务

$ sudo yum install -y mysql-server

操作过程如下

[liang@node1 ~]$ sudo yum install -y mysql-server
OS                                                  2.0 kB/s | 2.1 kB     00:01
everything                                           13 kB/s | 2.7 kB     00:00
EPOL                                                 12 kB/s | 2.3 kB     00:00
debuginfo                                            10 kB/s | 2.2 kB     00:00
source                                              9.3 kB/s | 2.6 kB     00:00
update                                              8.0 kB/s | 2.2 kB     00:00
update-source                                        11 kB/s | 2.2 kB     00:00
Dependencies resolved.
====================================================================================
 Package                       Arch    Version                    Repository   Size
====================================================================================
Installing:
 mysql-server                  x86_64  8.0.42-1.oe2403sp1         update       32 M
Installing dependencies:
 abseil-cpp                    x86_64  20230802.1-6.oe2403sp1     update      508 k
 checkpolicy                   x86_64  3.5-1.oe2403sp1            OS          293 k
 mecab                         x86_64  0.996-2.oe2403sp1          everything  375 k
 mysql                         x86_64  8.0.42-1.oe2403sp1         update       13 M
 mysql-common                  x86_64  8.0.42-1.oe2403sp1         update       26 k
 mysql-config                  x86_64  8.0.42-1.oe2403sp1         update      6.5 k
 mysql-errmsg                  x86_64  8.0.42-1.oe2403sp1         update      574 k
 mysql-selinux                 noarch  1.0.10-1.oe2403sp1         everything   31 k
 policycoreutils-python-utils  noarch  3.5-3.oe2403sp1            OS           22 k
 protobuf-lite                 x86_64  25.1-7.oe2403sp1           OS          215 k
 python3-IPy                   noarch  1.01-2.oe2403sp1           OS           44 k
 python3-audit                 x86_64  1:3.1.2-7.oe2403sp1        OS           76 k
 python3-libselinux            x86_64  3.5-3.oe2403sp1            OS          174 k
 python3-libsemanage           x86_64  3.5-1.oe2403sp1            OS           71 k
 python3-policycoreutils       noarch  3.5-3.oe2403sp1            OS          2.2 M
 python3-setools               x86_64  4.4.3-1.oe2403sp1          OS          657 k

Transaction Summary
====================================================================================
Install  17 Packages

Total download size: 51 M
Installed size: 263 M
Downloading Packages:
(1/17): policycoreutils-python-utils-3.5-3.oe2403sp  85 kB/s |  22 kB     00:00
(2/17): python3-IPy-1.01-2.oe2403sp1.noarch.rpm     382 kB/s |  44 kB     00:00
(3/17): checkpolicy-3.5-1.oe2403sp1.x86_64.rpm      715 kB/s | 293 kB     00:00
(4/17): protobuf-lite-25.1-7.oe2403sp1.x86_64.rpm   445 kB/s | 215 kB     00:00
(5/17): python3-libselinux-3.5-3.oe2403sp1.x86_64.r 2.0 MB/s | 174 kB     00:00
(6/17): python3-audit-3.1.2-7.oe2403sp1.x86_64.rpm  132 kB/s |  76 kB     00:00
(7/17): python3-libsemanage-3.5-1.oe2403sp1.x86_64. 102 kB/s |  71 kB     00:00
(8/17): mecab-0.996-2.oe2403sp1.x86_64.rpm          1.3 MB/s | 375 kB     00:00
(9/17): mysql-selinux-1.0.10-1.oe2403sp1.noarch.rpm 496 kB/s |  31 kB     00:00
(10/17): python3-policycoreutils-3.5-3.oe2403sp1.no 1.8 MB/s | 2.2 MB     00:01
(11/17): python3-setools-4.4.3-1.oe2403sp1.x86_64.r 765 kB/s | 657 kB     00:00
(12/17): mysql-common-8.0.42-1.oe2403sp1.x86_64.rpm 111 kB/s |  26 kB     00:00
(13/17): mysql-config-8.0.42-1.oe2403sp1.x86_64.rpm 120 kB/s | 6.5 kB     00:00
(14/17): abseil-cpp-20230802.1-6.oe2403sp1.x86_64.r 614 kB/s | 508 kB     00:00
(15/17): mysql-errmsg-8.0.42-1.oe2403sp1.x86_64.rpm 1.7 MB/s | 574 kB     00:00
(16/17): mysql-8.0.42-1.oe2403sp1.x86_64.rpm        963 kB/s |  13 MB     00:14
(17/17): mysql-server-8.0.42-1.oe2403sp1.x86_64.rpm 1.7 MB/s |  32 MB     00:19
------------------------------------------------------------------------------------
Total                                               2.3 MB/s |  51 MB     00:22
retrieving repo key for OS unencrypted from http://repo.openeuler.org/openEuler-24.03-LTS-SP1/OS/x86_64/RPM-GPG-KEY-openEuler
OS                                                  4.9 kB/s | 3.0 kB     00:00
Importing GPG key 0xB675600B:
 Userid     : "openeuler <openeuler@compass-ci.com>"
 Fingerprint: 8AA1 6BF9 F2CA 5244 010D CA96 3B47 7C60 B675 600B
 From       : http://repo.openeuler.org/openEuler-24.03-LTS-SP1/OS/x86_64/RPM-GPG-KEY-openEuler
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                            1/1
  Installing       : python3-libselinux-3.5-3.oe2403sp1.x86_64                 1/17
  Installing       : mysql-config-8.0.42-1.oe2403sp1.x86_64                    2/17
  Installing       : mysql-common-8.0.42-1.oe2403sp1.x86_64                    3/17
  Installing       : abseil-cpp-20230802.1-6.oe2403sp1.x86_64                  4/17
  Installing       : protobuf-lite-25.1-7.oe2403sp1.x86_64                     5/17
  Installing       : mysql-8.0.42-1.oe2403sp1.x86_64                           6/17
  Installing       : mysql-errmsg-8.0.42-1.oe2403sp1.x86_64                    7/17
  Installing       : python3-libsemanage-3.5-1.oe2403sp1.x86_64                8/17
  Installing       : python3-setools-4.4.3-1.oe2403sp1.x86_64                  9/17
  Installing       : mecab-0.996-2.oe2403sp1.x86_64                           10/17
  Running scriptlet: mecab-0.996-2.oe2403sp1.x86_64                           10/17
  Installing       : python3-audit-1:3.1.2-7.oe2403sp1.x86_64                 11/17
  Installing       : python3-IPy-1.01-2.oe2403sp1.noarch                      12/17
  Running scriptlet: checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17
  Installing       : checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17
  Running scriptlet: checkpolicy-3.5-1.oe2403sp1.x86_64                       13/17
  Installing       : python3-policycoreutils-3.5-3.oe2403sp1.noarch           14/17
  Installing       : policycoreutils-python-utils-3.5-3.oe2403sp1.noarch      15/17
  Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17
  Installing       : mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17
  Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  16/17
libsemanage.semanage_direct_install_info: Overriding mysql module at lower priority 100 with module at priority 200.

  Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17
  Installing       : mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17
  Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17
  Running scriptlet: mysql-selinux-1.0.10-1.oe2403sp1.noarch                  17/17
  Running scriptlet: mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17
/usr/lib/tmpfiles.d/dbus.conf:13: Line references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containers; please update the tmpfiles.d/ drop-in file accordingly.

  Verifying        : checkpolicy-3.5-1.oe2403sp1.x86_64                        1/17
  Verifying        : policycoreutils-python-utils-3.5-3.oe2403sp1.noarch       2/17
  Verifying        : protobuf-lite-25.1-7.oe2403sp1.x86_64                     3/17
  Verifying        : python3-IPy-1.01-2.oe2403sp1.noarch                       4/17
  Verifying        : python3-audit-1:3.1.2-7.oe2403sp1.x86_64                  5/17
  Verifying        : python3-libselinux-3.5-3.oe2403sp1.x86_64                 6/17
  Verifying        : python3-libsemanage-3.5-1.oe2403sp1.x86_64                7/17
  Verifying        : python3-policycoreutils-3.5-3.oe2403sp1.noarch            8/17
  Verifying        : python3-setools-4.4.3-1.oe2403sp1.x86_64                  9/17
  Verifying        : mecab-0.996-2.oe2403sp1.x86_64                           10/17
  Verifying        : mysql-selinux-1.0.10-1.oe2403sp1.noarch                  11/17
  Verifying        : abseil-cpp-20230802.1-6.oe2403sp1.x86_64                 12/17
  Verifying        : mysql-8.0.42-1.oe2403sp1.x86_64                          13/17
  Verifying        : mysql-common-8.0.42-1.oe2403sp1.x86_64                   14/17
  Verifying        : mysql-config-8.0.42-1.oe2403sp1.x86_64                   15/17
  Verifying        : mysql-errmsg-8.0.42-1.oe2403sp1.x86_64                   16/17
  Verifying        : mysql-server-8.0.42-1.oe2403sp1.x86_64                   17/17

Installed:
  abseil-cpp-20230802.1-6.oe2403sp1.x86_64
  checkpolicy-3.5-1.oe2403sp1.x86_64
  mecab-0.996-2.oe2403sp1.x86_64
  mysql-8.0.42-1.oe2403sp1.x86_64
  mysql-common-8.0.42-1.oe2403sp1.x86_64
  mysql-config-8.0.42-1.oe2403sp1.x86_64
  mysql-errmsg-8.0.42-1.oe2403sp1.x86_64
  mysql-selinux-1.0.10-1.oe2403sp1.noarch
  mysql-server-8.0.42-1.oe2403sp1.x86_64
  policycoreutils-python-utils-3.5-3.oe2403sp1.noarch
  protobuf-lite-25.1-7.oe2403sp1.x86_64
  python3-IPy-1.01-2.oe2403sp1.noarch
  python3-audit-1:3.1.2-7.oe2403sp1.x86_64
  python3-libselinux-3.5-3.oe2403sp1.x86_64
  python3-libsemanage-3.5-1.oe2403sp1.x86_64
  python3-policycoreutils-3.5-3.oe2403sp1.noarch
  python3-setools-4.4.3-1.oe2403sp1.x86_64

Complete!

启动MySQL

$ sudo systemctl start mysqld

启动查看MySQL状态

[liang@node1 ~]$ sudo systemctl status mysqld
● mysqld.service - MySQL 8.0 database server
     Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; preset: disa>
     Active: active (running) since Wed 2025-05-07 22:59:59 CST; 3min 7s ago
    Process: 2811 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status>
    Process: 2834 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mysqld.service (co>
   Main PID: 2912 (mysqld)
     Status: "Server is operational"
      Tasks: 37 (limit: 21353)
     Memory: 473.3M ()
     CGroup: /system.slice/mysqld.service
             └─2912 /usr/libexec/mysqld --basedir=/usr

5月 07 22:59:54 node1 systemd[1]: Starting MySQL 8.0 database server...
5月 07 22:59:55 node1 mysql-prepare-db-dir[2834]: Initializing MySQL database
5月 07 22:59:59 node1 systemd[1]: Started MySQL 8.0 database server.
lines 1-15/15 (END)

看到Active: active (running),说明mysql服务正常启动。

q键返回命令行。

设置MySQL开机自启动

[liang@node1 ~]$ sudo systemctl enable mysqld
Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.

查看登录密码

[liang@node1 ~]$ sudo cat /var/log/mysql/mysqld.log
2025-05-07T14:59:55.041414Z 0 [System] [MY-013169] [Server] /usr/libexec/mysqld (mysqld 8.0.42) initializing of server in progress as process 2869
2025-05-07T14:59:55.046791Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-05-07T14:59:55.301970Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-05-07T14:59:55.986953Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2025-05-07T14:59:58.680076Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.42) starting as process 2912
2025-05-07T14:59:58.689207Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2025-05-07T14:59:59.073809Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2025-05-07T14:59:59.317924Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2025-05-07T14:59:59.317946Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2025-05-07T14:59:59.340722Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/lib/mysql/mysqlx.sock
2025-05-07T14:59:59.340759Z 0 [System] [MY-010931] [Server] /usr/libexec/mysqld: ready for connections. Version: '8.0.42'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution.

输出看到[Server] root@localhost is created with an empty password !,说明初始密码为空。

登录MySQL

$ mysql -uroot -p

提示输入密码,因为是空密码,不需要输入任何信息直接回车,进入mysql命令行。

操作过程如下

[liang@node1 ~]$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.42 Source distribution

Copyright (c) 2000, 2025, 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>

测试使用MySQL命令

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.00 sec)

mysql> quit;
Bye
[liang@node1 ~]$

修改密码及支持远程连接

mysql> set password='000000';
mysql> update mysql.user set host='%' where user='root';
mysql> flush privileges;

操作过程如下

[liang@node1 ~]$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.42 Source distribution

Copyright (c) 2000, 2025, 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> set password='000000';
Query OK, 0 rows affected (0.01 sec)

mysql> update mysql.user set host='%' where user='root';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> quit;
Bye
[liang@node1 ~]$

使用新密码登录

[liang@node1 ~]$ mysql -uroot -p000000
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.42 Source distribution

Copyright (c) 2000, 2025, 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>

远程连接MySQL

使用navicat等工具远程连接mysql

完成!enjoy it!

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

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

相关文章

gflags 安装及使用

目录 引言 安装 如何用 gflags 库写代码 如何用命令行使用 gflags 库 gflags 库的其他命令行参数 引言 gflags 是 Google 开发的一个开源库&#xff0c;用于 C 应用程序中命令行参数的声明、定义 和解析。 gflags 库提供了一种简单的方式来添加、解析和文档化命令行标…

Linux面试题集合(2)

查看系统磁盘使用&#xff0c;当前目录下所有文件夹的使用情况 df -h du -h 更改目录所有人和所有组&#xff0c;包括里面的文件夹下的文件&#xff0c;递归更改 chown -R newowner:newgroup 目录名 只更改文件所有人或者只更改文件所有组 chown newowner file chgrp newgroup …

致敬经典 << KR C >> 之打印输入单词水平直方图和以每行一个单词打印输入 (练习1-12和练习1-13)

1. 前言 不知道有多少同学正在自学C/C, 无论你是一个在校学生, 还是已经是上班族. 如果你想从事或即将从事软件开发这个行业, C/C都是一个几乎必须要接触的系统级程序开发语言. 虽然现在有Rust更安全的系统级编程语言作为C/C的替代, 但作为入门, C应该还是要好好学的. C最早由B…

基于Llama3的开发应用(二):大语言模型的工业部署

大语言模型的工业部署 0 前言1 ollama部署大模型1.1 ollama简介1.2 ollama的安装1.3 启动ollama服务1.4 下载模型1.5 通过API调用模型 2 vllm部署大模型2.1 vllm简介2.2 vllm的安装2.3 启动vllm模型服务2.4 API调用 3 LMDeploy部署大模型3.1 LMDeploy简介3.2 LMDeploy的安装3.3…

windows 10 做服务器 其他电脑无法访问,怎么回事?

一般我们会先打开win10自己的防火墙策略&#xff0c;但是容易忽略 电脑之间 路由器上的防火墙&#xff0c;此时也需要查看一下&#xff0c;可以尝试先关闭路由器防火墙&#xff0c;如果可以了&#xff0c;再 设置路由器上的防火墙规则。 将路由器的上网设置 改成 路由模式 &a…

Linux进程信号处理(26)

文章目录 前言一、信号的处理时机处理情况“合适”的时机 二、用户态与内核态概念重谈进程地址空间信号的处理过程 三、信号的捕捉内核如何实现信号的捕捉&#xff1f;sigaction 四、信号部分小结五、可重入函数六、volatile七、SIGCHLD 信号总结 前言 这篇就是我们关于信号的最…

报表控件stimulsoft教程:如何在报表和仪表板中创建热图

Stimulsoft Ultimate &#xff08;原Stimulsoft Reports.Ultimate&#xff09;是用于创建报表和仪表板的通用工具集。该产品包括用于WinForms、ASP.NET、.NET Core、JavaScript、WPF、PHP、Java和其他环境的完整工具集。无需比较产品功能&#xff0c;Stimulsoft Ultimate包含了…

win32相关(字符编码)

字符编码 ASCII编码 ASCII&#xff08;American Standard Code for Information Interchange&#xff0c;美国信息交换标准代码&#xff09;是最基础的字符编码标准&#xff0c;用于在计算机和其他设备中表示文本 基本概念 7位编码&#xff1a; ASCII使用7位二进制数&#x…

使用Langfuse和RAGAS,搭建高可靠RAG应用

大家好&#xff0c;在人工智能领域&#xff0c;RAG系统融合了检索方法与生成式AI模型&#xff0c;相比纯大语言模型&#xff0c;提升了准确性、减少幻觉且更具可审计性。不过&#xff0c;在实际应用中&#xff0c;当建好RAG系统投入使用时&#xff0c;如何判断接收信息是否正确…

android studio导入项目

如果 gradle-8.0-bin.zip 没有下载成功 可以点击进入这个网站&#xff1a;https://services.gradle.org/distributions/ 找到和自己本版相同的gradle-8.0-bin.zip文件找到自己版本进行下载; 如果下载依赖失败, 可以手动下载依赖编译过程中的jar https://repo.maven.apache.org/…

Autosar Nvm下电存储实现方式-基于ETAS工具

文章目录 前言Autosar Nvm相关定义Nvm Ram Block States状态切换Nvm_WriteAll函数NvBlock配置生成代码分析及使用总结前言 Nvm中存储的数据,一般有两种存储方式,一个是立即存,一个是下电存,之前介绍过立即存的配置,本文介绍下电存的配置及实现 Autosar Nvm相关定义 Nvm…

c# 数据结构 树篇 入门树与二叉树的一切

事先声明,本文不适合对数据结构完全不懂的小白 请至少学会链表再阅读 c# 数据结构 链表篇 有关单链表的一切_c# 链表-CSDN博客 数据结构理论先导:《数据结构&#xff08;C 语言描述&#xff09;》也许是全站最良心最通俗易懂最好看的数据结构课&#xff08;最迟每周五更新~~&am…

Python Bug 修复案例分析:asyncio 事件循环异常引发的程序崩溃 两种修复方法

在 Python 异步编程的工作中&#xff0c;asyncio库为我们提供了高效处理并发任务的强大工具。然而&#xff0c;asyncio在使用过程中也可能因为一些细节处理不当而引发 Bug。下面&#xff0c;我们就来深入分析一个因asyncio事件循环异常导致程序崩溃的典型案例。兴趣的友友可以借…

题单:递归求和

宣布一个重要的事情&#xff0c;我的洛谷有个号叫 题目描述 给一个数组 a:a[0],a[1],...,a[n−1]a:a[0],a[1],...,a[n−1] 请用递归的方式出数组的所有数之和。 提示&#xff1a;递推方程 f(x)f(x−1)a[x]f(x)f(x−1)a[x]; 输入格式 第一行一个正整数 n (n≤100)n (n≤100)…

怎么在excel单元格1-5行中在原来内容前面加上固定一个字?

环境&#xff1a; WPS 2024 问题描述&#xff1a; 怎么在excel单元格1-5行中在原来内容前面加上固定一个字&#xff1f; 解决方案&#xff1a; 1.在Excel中&#xff0c;如果您想在单元格的内容前面添加一个固定的字&#xff0c;可以通过以下几种方法实现&#xff1a; 方法…

OpenHarmony 开源鸿蒙南向开发——linux下使用make交叉编译第三方库——mqtt库

准备工作 请依照这篇文章搭建环境 OpenHarmony 开源鸿蒙南向开发——linux下使用make交叉编译第三方库——环境配置_openharmony交叉编译-CSDN博客 下载 wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.9.tar.xz 解压 tar -xf mkdir ./out cd ./out Cmake命…

数据结构 -- 顺序查找和折半查找

查找的基本概念 基本概念 查找&#xff1a;在数据集合中寻找满足某种条件的数据元素的过程 查找表&#xff08;查找结构&#xff09;&#xff1a;用于查找的数据集合称为查找表&#xff0c;它由同一类型的数据结构元素&#xff08;或记录&#xff09;组成 关键字&#xff1…

信息收集+初步漏洞打点

目标&#xff1a;理解信息收集在渗透测试中的意义&#xff0c;熟悉常用工具用法&#xff0c;完成基本打点测试 一.理论学习&#xff1a; 模块内容说明信息收集分类主动信息收集 vs 被动信息收集目标发现子域名、IP、端口、子站点、目录、接口技术指纹识别Web框架&#xff08;如…

JavaScript【5】DOM模型

1.概述&#xff1a; DOM (Document Object Model)&#xff1a;当页面被加载时&#xff0c;浏览器会创建页面的文档对象模型&#xff0c;即dom对象&#xff1b;dom对象会被结构化为对象树&#xff0c;如一个HTML文档会被分为head&#xff0c;body等部分&#xff0c;而每个部分又…

Cloudflare防火墙拦截谷歌爬虫|导致收录失败怎么解决?

许多站长发现网站突然从谷歌搜索结果中“消失”&#xff0c;背后很可能是Cloudflare防火墙误拦截了谷歌爬虫&#xff08;Googlebot&#xff09;&#xff0c;导致搜索引擎无法正常抓取页面。 由于Cloudflare默认的防护规则较为严格&#xff0c;尤其是针对高频访问的爬虫IP&…