在CentOS 7.6中安装openGauss 5.1.0 (Preview)数据库并使用Navicat进行远程连接的过程记录

部署环境

华为云Flexus应用服务器
操作系统:CentOS 7.6
openGauss版本:openGauss 5.1.0 (Preview)

参考文档

官方安装文档:
https://docs.opengauss.org/zh/docs/5.1.0/docs/InstallationGuide/%E4%BA%86%E8%A7%A3%E5%AE%89%E8%A3%85%E6%B5%81%E7%A8%8B.html
其他文件问题排查文档:
https://blog.csdn.net/YINZHE__/article/details/131347291
https://www.modb.pro/db/650751

安装openGauss

安装依赖

yum install update
yum install -y bzip2 libaio-devel flex bison ncurses-devel glibc-devel libxml2-devel patch redhat-lsb-core unzip gcc gcc-c++ perl openssl-devel libffi-devel libtool zlib-devel readline-devel expect

检查是安装了python3

python3 -V

准备配置文件

<?xml version="1.0" encoding="UTF-8"?>
<ROOT><!-- openGauss整体信息 --><CLUSTER><!-- 数据库名称 --><PARAM name="clusterName" value="dbCluster" /><!-- 数据库节点名称(hostname) --><PARAM name="nodeNames" value="node1_hostname" /><!-- 数据库安装目录--><PARAM name="gaussdbAppPath" value="/opt/huawei/install/app" /><!-- 日志目录--><PARAM name="gaussdbLogPath" value="/var/log/omm" /><!-- 临时文件目录--><PARAM name="tmpMppdbPath" value="/opt/huawei/tmp" /><!-- 数据库工具目录--><PARAM name="gaussdbToolPath" value="/opt/huawei/install/om" /><!-- 数据库core文件目录--><PARAM name="corePath" value="/opt/huawei/corefile" /><!-- 节点IP,与数据库节点名称列表一一对应 --><PARAM name="backIp1s" value="192.168.0.1"/> </CLUSTER><!-- 每台服务器上的节点部署信息 --><DEVICELIST><!-- 节点1上的部署信息 --><DEVICE sn="node1_hostname"><!-- 节点1的主机名称 --><PARAM name="name" value="node1_hostname"/><!-- 节点1所在的AZ及AZ优先级 --><PARAM name="azName" value="AZ1"/><PARAM name="azPriority" value="1"/><!-- 节点1的IP,如果服务器只有一个网卡可用,将backIP1和sshIP1配置成同一个IP --><PARAM name="backIp1" value="192.168.0.1"/><PARAM name="sshIp1" value="192.168.0.1"/><!--dbnode--><PARAM name="dataNum" value="1"/><PARAM name="dataPortBase" value="15400"/><PARAM name="dataNode1" value="/opt/huawei/install/data/dn"/><PARAM name="dataNode1_syncNum" value="0"/></DEVICE></DEVICELIST>
</ROOT>

创建文件存放目录并给执行权限

mkdir -p /opt/software/openGauss
mkdir -p /opt/huawei
chmod 755 -R /opt/software
chmod 755 -R /opt/huawei

初始化安装环境

cd /opt/software/openGauss
tar -zxvf openGauss-x.x.x-openEuler-64bit-all.tar.gz
tar -zxvf openGauss-x.x.x-openEuler-64bit-om.tar.gz
cd /opt/software/openGauss/script
./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml

执行gs_preinstall时会报错,提示我们使用命令:

./gs_checkos -i A -h hcss-ecs-3fd4 --detail

进行检查,检查结果:

[root@hcss-ecs-3fd4 script]# ./gs_checkos -i A -h hcss-ecs-3fd4 --detail
Checking items:A1. [ OS version status ]                                   : Normal[hcss-ecs-3fd4]centos_7.6.1810_64bitA2. [ Kernel version status ]                               : NormalThe names about all kernel versions are same. The value is "3.10.0-1160.                                                                                              119.1.el7.x86_64".A3. [ Unicode status ]                                      : NormalThe values of all unicode are same. The value is "LANG=en_US.UTF-8".A4. [ Time zone status ]                                    : NormalThe informations about all timezones are same. The value is "+0800".A5. [ Swap memory status ]                                  : NormalThe value about swap memory is correct.A6. [ System control parameters status ]                    : NormalAll values about system control  parameters are correct.A7. [ File system configuration status ]                    : NormalBoth soft nofile and hard nofile are correct.A8. [ Disk configuration status ]                           : NormalThe value about XFS mount parameters is correct.A9. [ Pre-read block size status ]                          : NormalThe value about Logical block size is correct.A10.[ IO scheduler status ]                                 : NormalThe value of IO scheduler is correct.A11.[ Network card configuration status ]                   : Warning[hcss-ecs-3fd4]
BondMode NullWarning reason: Failed to obtain the network card speed value. Commands                                                                                               for obtain the network card speed: /sbin/ethtool lo | grep 'Speed:'. Error:A12.[ Time consistency status ]                             : Warning[hcss-ecs-3fd4]The NTPD not detected on machine and local time is "2025-03-20 08:37:33"                                                                                              .A13.[ Firewall service status ]                             : NormalThe firewall service is stopped.A14.[ THP service status ]                                  : NormalThe THP service is stopped.
Total numbers:14. Abnormal numbers:0. Warning numbers:2.

如果有Abnormal项,必须解决,可以参考:https://blog.csdn.net/YINZHE__/article/details/131347291

开始安装

su - omm
gs_install -X /opt/software/openGauss/cluster_config.xml

安装过程中需要设置密码:

设置的密码要符合复杂度要求:
1.最少包含8个字符,最多包含16个字符。
2.不能和用户名、当前密码(ALTER)、或当前密码反序相同。
3.至少包含大写字母(A-Z)、小写字母(a-z)、数字、非字母数字字符(限定为~!@#$%^&*()-_=+|[{}];:,<.>/?)四类字符中的三类字符。

安装过程输出信息:

Parsing the configuration file.
Successfully checked gs_uninstall on every node.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Successfully created the backup directory.
begin deploy..
Installing the cluster.
begin prepare Install Cluster..
Checking the installation environment on all nodes.
begin install Cluster..
Installing applications on all nodes.
Successfully installed APP.
begin init Instance..
encrypt cipher and rand files for database.
Please enter password for database:
Please repeat for database:
begin to create CA cert files
The sslcert will be generated in /opt/huawei/install/app/share/sslcert/om
NO cm_server instance, no need to create CA for CM.
Non-dss_ssl_enable, no need to create CA for DSS
Cluster installation is completed.
Configuring.
Deleting instances from all nodes.
Successfully deleted instances from all nodes.
Checking node configuration on all nodes.
Initializing instances on all nodes.
Updating instance configuration on all nodes.
Check consistence of memCheck and coresCheck on database nodes.
Configuring pg_hba on all nodes.
Configuration is completed.
Using omm:dbgrp to install database.
Using installation program path : /opt/huawei/install/app_b5a8d5b0
$GAUSSHOME points to /opt/huawei/install/app_b5a8d5b0, no need to create symbolic link.
Traceback (most recent call last):File "/opt/huawei/install/om/script/local/Install.py", line 812, in <module>functionDict[g_opts.action]()File "/opt/huawei/install/om/script/local/Install.py", line 743, in startClusterdn.start(self.time_out)File "/opt/huawei/install/om/script/local/../gspylib/component/Kernel/Kernel.py", line 106, in start"failure details." + "\n" + output)
Exception: [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2025-03-20 09:09:00.686][6902][][gs_ctl]: gs_ctl started,datadir is /opt/huawei/install/data/dn
[2025-03-20 09:09:00.717][6902][][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.0 LOG:  [Alarm Module]Host Name: hcss-ecs-3fd40 LOG:  [Alarm Module]Host IP: hcss-ecs-3fd4. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOS                       T IP>0 LOG:  [Alarm Module]Cluster Name: dbCluster0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 580 WARNING:  failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or director                       y.
0 WARNING:  failed to parse feature control file: gaussdb.version.
0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
0 LOG:  bbox_dump_path is set to /opt/huawei/corefile/
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  base_page_saved_interval is 400, ori is 400.
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 DB010  0 [REDO] LOG:  Recovery parallelism, cpu count = 2, max = 4, ac                       tual = 2
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 DB010  0 [REDO] LOG:  ConfigRecoveryParallelism, true_max_recovery_par                       allelism:4, max_recovery_parallelism:4
gaussdb.state does not exist, and skipt setting since it is optional.2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 0                       0000  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Host Name: hcss-ecs-3fd42025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Host IP: hcss-ecs-3fd4. Copy ho                       stname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Cluster Name: dbCluster2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file!                        Read alarm English name failed! line: 582025-03-20 09:09:00.815 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  loaded library "security_plugin"
2025-03-20 09:09:00.818 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2025-03-20 09:09:00.818 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2025-03-20 09:09:00.822 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  InitNuma numaNodeNum: 1 numa_distribute_mode:                        none inheritThreadPool: 0.
2025-03-20 09:09:00.822 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  Failed to initialize the memory protect f                       or g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (3538 Mbytes) is larger.
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] FATAL:  could not create shared memory segment: Can                       not allocate memory
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] DETAIL:  Failed system call was shmget(key=15400001                       , size=3710847304, 03600).
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] HINT:  This error usually means that openGauss's re                       quest for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter.  You can either reduce the reque                       st size or reconfigure the kernel with larger SHMALL.  To reduce the request size (currently 3710847304 bytes), reduce openGauss's shared memory usage,                        perhaps by reducing shared_buffers.The openGauss documentation contains more information about shared memory configuration.
2025-03-20 09:09:00.826 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  FiniNuma allocIndex: 0.
[2025-03-20 09:09:01.719][6902][][gs_ctl]: waitpid 6905 failed, exitstatus is 256, ret is 2[2025-03-20 09:09:01.719][6902][][gs_ctl]: stopped waiting
[2025-03-20 09:09:01.719][6902][][gs_ctl]: could not start server
Examine the log output.[GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2025-03-20 09:09:00.686][6902][][gs_ctl]: gs_ctl started,datadir is /opt/huawei/install/data/dn
[2025-03-20 09:09:00.717][6902][][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.0 LOG:  [Alarm Module]Host Name: hcss-ecs-3fd40 LOG:  [Alarm Module]Host IP: hcss-ecs-3fd4. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOS                       T IP>0 LOG:  [Alarm Module]Cluster Name: dbCluster0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 580 WARNING:  failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or director                       y.
0 WARNING:  failed to parse feature control file: gaussdb.version.
0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
0 LOG:  bbox_dump_path is set to /opt/huawei/corefile/
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  base_page_saved_interval is 400, ori is 400.
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 DB010  0 [REDO] LOG:  Recovery parallelism, cpu count = 2, max = 4, ac                       tual = 2
2025-03-20 09:09:00.783 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 DB010  0 [REDO] LOG:  ConfigRecoveryParallelism, true_max_recovery_par                       allelism:4, max_recovery_parallelism:4
gaussdb.state does not exist, and skipt setting since it is optional.2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 0                       0000  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Host Name: hcss-ecs-3fd42025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Host IP: hcss-ecs-3fd4. Copy ho                       stname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Cluster Name: dbCluster2025-03-20 09:09:00.810 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file!                        Read alarm English name failed! line: 582025-03-20 09:09:00.815 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  loaded library "security_plugin"
2025-03-20 09:09:00.818 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2025-03-20 09:09:00.818 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2025-03-20 09:09:00.822 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  InitNuma numaNodeNum: 1 numa_distribute_mode:                        none inheritThreadPool: 0.
2025-03-20 09:09:00.822 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  Failed to initialize the memory protect f                       or g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (3538 Mbytes) is larger.
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] FATAL:  could not create shared memory segment: Can                       not allocate memory
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] DETAIL:  Failed system call was shmget(key=15400001                       , size=3710847304, 03600).
2025-03-20 09:09:00.823 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 42809  0 [BACKEND] HINT:  This error usually means that openGauss's re                       quest for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter.  You can either reduce the reque                       st size or reconfigure the kernel with larger SHMALL.  To reduce the request size (currently 3710847304 bytes), reduce openGauss's shared memory usage,                        perhaps by reducing shared_buffers.The openGauss documentation contains more information about shared memory configuration.
2025-03-20 09:09:00.826 67db6aac.1 [unknown] 140006029562368 [unknown] 0 dn_6001 00000  0 [BACKEND] LOG:  FiniNuma allocIndex: 0.
[2025-03-20 09:09:01.719][6902][][gs_ctl]: waitpid 6905 failed, exitstatus is 256, ret is 2[2025-03-20 09:09:01.719][6902][][gs_ctl]: stopped waiting
[2025-03-20 09:09:01.719][6902][][gs_ctl]: could not start server
Examine the log output.

从输出信息中看到安装成功但是无法启动,主要错误信息:Failed to start instance. Error: Please check the gs_ctl log for failure details.
原因是因为虚拟机内存太低了,参考:https://www.modb.pro/db/650751
在/opt/openGauss/data/dn/postgresql.conf中调整以下参数:

shared_buffers = 128MB
cstore_buffers = 128MB #min 16MB
ssl = off

重新启动数据库:

[omm@node111 ~]$ gs_om -t start
Starting cluster.

配置Navicat远程连接

修改配置

修改postgresql.conf

vim /opt/huawei/install/data/dn/postgresql.conf

将68行和110行改为

listen_addresses = '*'
password_encryption_type = 0

修改pg_hba.conf

vim /opt/huawei/install/data/dn/pg_hba.conf

追加

host all all 0.0.0.0/0 md5

重启数据库

su omm
gs_om -t restart

创建远程连接用户

gsql -d postgres -p 15400
openGauss=# create user test with password "OUYE@123";
NOTICE:  The encrypted password contains MD5 ciphertext, which is not secure.
ALTER ROLE
openGauss=# GRANT ALL PRIVILEGES to test;
ALTER ROLE
openGauss=# create database db_tpcc owner test;
CREATE DATABASE
openGauss=# \q
[omm@hcss-ecs-3fd4 root]$ gsql -d db_tpcc -p 15400 -U test
Password for user test: 

使用Navicat远程连接登录

在这里插入图片描述

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

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

相关文章

SysOM 可观测体系建设(一):万字长文解读低开销、高精度性能剖析工具livetrace

可观测性是一种通过分析系统输出结果并推断和衡量系统内部状态的能力。谈及可观测性一般包含几大功能&#xff1a;监控指标、链路追踪、告警日志&#xff0c;及 Continues Profiling 持续剖析能力。对于操作系统可观测&#xff0c;监控指标可以帮助查看各个子系统&#xff08;I…

Shell脚本学习笔记:从入门到变量(一)

前言 最近在看 Shell 脚本相关的内容&#xff0c;以下是我从入门到变量部分的整理笔记&#xff0c;内容有点多&#xff0c;但都是干货。 先从基础开始&#xff0c;再逐步深入。 一、Shell 脚本入门 1. Linux 如何控制硬件&#xff1f; Linux 靠内核操作硬件&#xff08;CP…

Linux应用:进程间通信

linux的进程间通信概述 进程间通信&#xff08;IPC&#xff0c;Inter - Process Communication&#xff09;是指在不同进程之间进行数据交换和同步的机制。由于每个进程都有自己独立的地址空间&#xff0c;直接共享内存存在困难&#xff0c;因此需要专门的 IPC 机制来实现进程…

el-input 不可编辑,但是点击的时候出现弹窗/或其他操作面板,并且带可清除按钮

1.focus“getFocus”鼠标聚焦的时候写个方法&#xff0c;弹窗起来 getFocus(){ this.定义的弹窗状态字段 true;} 2.点击确定的时候&#xff0c;数值赋值到el-input的输入框,弹窗取消&#xff08;this.定义的弹段字端 false&#xff09; 3.但是会有个问题就是el-input 不可点…

Weblogic未授权远程命令执行漏洞复现

1 漏洞简介 Weblogic是Oracle公司推出的J2EE应用服务器&#xff0c;CVE-2020-14882允许未授权的用户绕过管理控制台的权限验证访问后台&#xff0c;CVE-2020-14883允许后台任意用户通过HTTP协议执行任意命令。使用这两个漏洞组成的利用链&#xff0c;可通过一个GET请求在远程W…

海康SDK协议在智联视频超融合平台中的接入方法

一. 海康SDK协议详解 海康SDK协议原理 海康SDK协议是海康威视为开发者提供的一套软件开发工具包&#xff0c;用于与海康设备&#xff08;如摄像头、NVR、DVR等&#xff09;进行通信和控制。其核心原理包括&#xff1a; 网络通信&#xff1a;基于TCP/IP协议&#xff0c;实现设…

五模型对比!Transformer-GRU、Transformer、CNN-GRU、GRU、CNN五模型多变量时间序列预测

目录 预测效果基本介绍程序设计参考资料 预测效果 基本介绍 光伏功率预测&#xff01;五模型对比&#xff01;Transformer-GRU、Transformer、CNN-GRU、GRU、CNN五模型多变量时间序列预测(Matlab2023b 多输入单输出) 1.程序已经调试好&#xff0c;替换数据集后&#xff0c;仅运…

20250319在荣品的PRO-RK3566开发板的buildroot系统下使用集成的QT应用调试串口UART3

stty -F /dev/ttyS3 115200 -echo cat /dev/ttyS3 & echo serialdata > /dev/ttyS3 20250319在荣品的PRO-RK3566开发板的buildroot系统下使用集成的QT应用调试串口UART3 2025/3/19 14:17 缘起&#xff1a;在荣品的PRO-RK3566开发板的buildroot系统下&#xff0c;在命令…

Git 使用笔记

参考链接&#xff1a; 创建版本库 - Git教程 - 廖雪峰的官方网站 Git使用教程,最详细&#xff0c;最傻瓜&#xff0c;最浅显&#xff0c;真正手把手教 - 知乎 命令使用 cd f: 切换目录到 F 盘 cd gitCxl 切换目录到 gitCxl 文件夹 mkdir gitCxl 创建新文件…

Xilinx系列FPGA视频采集转HDMI2.0输出,基于HDMI 1.4/2.0 Transmitter Subsystem方案,提供6套工程源码和技术支持

目录 1、前言工程概述免责声明 2、相关方案推荐我已有的所有工程源码总目录----方便你快速找到自己喜欢的项目我已有的 GT 高速接口解决方案我已有的FPGA图像处理方案 3、详细设计方案设计框图硬件设计架构FPGA开发板输入Sensor之-->OV5640摄像头动态彩条Video In To AXI4-S…

机器学习面试重点第二部分(动画版)

​ 目录 ​ 第一章、聚类算法 ​1.1 K-means 聚类 ​1.1.1 算法​编辑流程 1.1.2 优缺点 ​1.1.3 应用场景 ​1.2 层次聚类 ​1.2.1 算法流程 1.2.2 优缺点 ​1.2.3 应用场景 ​1.3 DBSCAN ​1.3.1 算法流程 1.3.2 优缺点 ​1.3.3 应用场景 1.3.4. 参数 ε&…

剑指Offer精选:Java与Spring高频面试题深度解析

一、Java底层核心机制 &#x1f525; 问题1&#xff1a;谈谈对Java的理解&#xff1f; &#x1f4cc; 核心技术特性 平台无关性 "一次编译&#xff0c;到处运行"&#xff1a;通过JVM实现跨平台兼容 字节码&#xff08;.class&#xff09;作为中间语言&#xff0c;…

RabbitMQ 集群降配

这里写自定义目录标题 摘要检查状态1. 检查 RabbitMQ 服务状态2. 检查 RabbitMQ 端口监听3. 检查 RabbitMQ 管理插件是否启用4. 检查开机自启状态5. 确认集群高可用性6. 检查使用该集群的服务是否做了断开重连 实操1. 负载均衡配置2. 逐个节点降配&#xff08;滚动操作&#xf…

【正点原子K210连载】第七十六章 音频FFT实验 摘自【正点原子】DNK210使用指南-CanMV版指南

第七十六章 音频FFT实验 本章将介绍CanMV下FFT的应用&#xff0c;通过将时域采集到的音频数据通过FFT为频域。通过本章的学习&#xff0c;读者将学习到CanMV下控制FFT加速器进行FFT的使用。 本章分为如下几个小节&#xff1a; 32.1 maix.FFT模块介绍 32.2 硬件设计 32.3 程序设…

嵌入式开发之STM32学习笔记day08

从“门铃”到“中断”&#xff1a;手把手玩转STM32的外部中断控制器&#xff08;EXTI&#xff09; 引言&#xff1a;为什么我们需要“中断”&#xff1f; &#xff08;类比生活场景&#xff1a;用“快递按门铃”解释中断的意义&#xff09; 想象一下&#xff1a;当你在…

JVM的一些知识

JVM简介 JVM 是 Java Virtual Machine 的简称&#xff0c;意为 Java 虚拟机。 虚拟机是指通过软件模拟的具有完整硬件功能的、运行在一个完全隔离的环境中的完整计算机系统。常见的虚拟机&#xff1a;JVM、VMwave、Virtual Box。 JVM 和其他两个虚拟机的区别&#xff1a; VMw…

Mac:JMeter 下载+安装+环境配置(图文详细讲解)

&#x1f4cc; 下载JMeter 下载地址&#xff1a;https://jmeter.apache.org/download_jmeter.cgi &#x1f4cc; 无需安装 Apache官网下载 JMeter 压缩包&#xff0c;无需安装&#xff0c;下载解压后放到自己指定目录下即可。 按我自己的习惯&#xff0c;我会在用户 jane 目…

【简单有效!】Gradio利用html插件实现video视频流循环播放

文章目录 前言 & 思路静态资源挂载完整代码结果示例 前言 & 思路 需要利用gradio在前端搭建一个页面&#xff0c;循环播放视频。思路是直接调用gr.HTML插件实现&#xff0c;简单有效&#xff01;&#xff01;&#xff01; 静态资源挂载 app.mount("/static&quo…

⭐算法OJ⭐克隆图【BFS】(C++实现)Clone Graph

前情提要&#xff1a;图论入门【数据结构基础】&#xff1a;什么是图&#xff1f;如何表示图&#xff1f; 133. Clone Graph Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a va…

SpringSecurity——基于角色权限控制和资源权限控制

目录 基于角色权限控制 1.1 自定义 UserDetailsService 1.2 加载用户角色 1.3. 给角色配置能访问的资源&#xff08;使用切面拦截&#xff0c;使用注解&#xff09; 总结 资源权限控制 2.2. 需要有一个用户&#xff1b;&#xff08;从数据库查询用户&#xff09; 2.2 基…