CUDA环境配置在Ubuntu18

🎬个人简介:一个全栈工程师的升级之路!
📋个人专栏:高性能(HPC)开发基础教程
🎀CSDN主页 发狂的小花
🌄人生秘诀:学习的本质就是极致重复!

目录

1 NVIDIA CUDA环境配置

 1.1 NVIDIA GPU Driver 安装配置

1.2 NVIDIA CUDA 安装配置

1.2.1 NVIDIA GPU driver与CUDA 版本对应

1.2.2 CUAD 安装配置验证

1.3 cuDNN 安装配置

1.3.1 CUDA 与cuDNN 版本对应

1.3.2 cuDNN安装配置


1 NVIDIA CUDA环境配置

 1.1 NVIDIA GPU Driver 安装配置

        step1:you can use "nvidia-detector" to detect nvidia driver for the GPU

        

        step2:you can update and install driver on sodtware&update

        

        step3:you can use "nvidia-smi" to see

        step4:you can "reboot" to see.

        可能有的错误:

        a. /home/hubery/lib/opencv/samples/opencl/opencl-opencv-interop.cpp:26:10: fatal error: CL/cl.h: 没有那个文件或目录

 #include <CL/cl.h>

        解决办法:use "sudo apt install nvidia-opencl-dev " to install opencl

        b. ubuntu解决libnvidia-gl-390错误

        ubuntu解决libnvidia-gl-390错误

1.2 NVIDIA CUDA 安装配置

 CUDA地址点开后,cuda对应平台各个版本下载地址:

CUDA Toolkit Archive | NVIDIA Developer

1.2.1 NVIDIA GPU driver与CUDA 版本对应

Table 3 CUDA Toolkit and Corresponding Driver Versions 

CUDA Toolkit

Toolkit Driver Version

Linux x86_64 Driver Version

Windows x86_64 Driver Version

CUDA 12.4 GA

>=550.54.14

>=551.61

CUDA 12.3 Update 1

>=545.23.08

>=546.12

CUDA 12.3 GA

>=545.23.06

>=545.84

CUDA 12.2 Update 2

>=535.104.05

>=537.13

CUDA 12.2 Update 1

>=535.86.09

>=536.67

CUDA 12.2 GA

>=535.54.03

>=536.25

CUDA 12.1 Update 1

>=530.30.02

>=531.14

CUDA 12.1 GA

>=530.30.02

>=531.14

CUDA 12.0 Update 1

>=525.85.12

>=528.33

CUDA 12.0 GA

>=525.60.13

>=527.41

CUDA 11.8 GA

>=520.61.05

>=520.06

CUDA 11.7 Update 1

>=515.48.07

>=516.31

CUDA 11.7 GA

>=515.43.04

>=516.01

CUDA 11.6 Update 2

>=510.47.03

>=511.65

CUDA 11.6 Update 1

>=510.47.03

>=511.65

CUDA 11.6 GA

>=510.39.01

>=511.23

CUDA 11.5 Update 2

>=495.29.05

>=496.13

CUDA 11.5 Update 1

>=495.29.05

>=496.13

CUDA 11.5 GA

>=495.29.05

>=496.04

CUDA 11.4 Update 4

>=470.82.01

>=472.50

CUDA 11.4 Update 3

>=470.82.01

>=472.50

CUDA 11.4 Update 2

>=470.57.02

>=471.41

CUDA 11.4 Update 1

>=470.57.02

>=471.41

CUDA 11.4.0 GA

>=470.42.01

>=471.11

CUDA 11.3.1 Update 1

>=465.19.01

>=465.89

CUDA 11.3.0 GA

>=465.19.01

>=465.89

CUDA 11.2.2 Update 2

>=460.32.03

>=461.33

CUDA 11.2.1 Update 1

>=460.32.03

>=461.09

CUDA 11.2.0 GA

>=460.27.03

>=460.82

CUDA 11.1.1 Update 1

>=455.32

>=456.81

CUDA 11.1 GA

>=455.23

>=456.38

CUDA 11.0.3 Update 1

>= 450.51.06

>= 451.82

CUDA 11.0.2 GA

>= 450.51.05

>= 451.48

CUDA 11.0.1 RC

>= 450.36.06

>= 451.22

CUDA 10.2.89

>= 440.33

>= 441.22

CUDA 10.1 (10.1.105 general release, and updates)

>= 418.39

>= 418.96

CUDA 10.0.130

>= 410.48

>= 411.31

CUDA 9.2 (9.2.148 Update 1)

>= 396.37

>= 398.26

CUDA 9.2 (9.2.88)

>= 396.26

>= 397.44

CUDA 9.1 (9.1.85)

>= 390.46

>= 391.29

CUDA 9.0 (9.0.76)

>= 384.81

>= 385.54

CUDA 8.0 (8.0.61 GA2)

>= 375.26

>= 376.51

CUDA 8.0 (8.0.44)

>= 367.48

>= 369.30

CUDA 7.5 (7.5.16)

>= 352.31

>= 353.66

CUDA 7.0 (7.0.28)

>= 346.46

>= 347.62

1.2.2 CUAD 安装配置验证

wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run
sudo sh cuda_12.1.1_530.30.02_linux.run

仅仅安装 CUDA Toolkit 12.1即可,如下安装完成:

增加环境变量

vi ~/.bashrc

# cuda path
# ln -s /usr/local/cuda-12.1 /usr/local/cuda #建立软链接
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/bin
source ~/.bashrc

验证CUDA安装成功

        上述表示安装成功

1.3 cuDNN 安装配置

cudnn下载路径:cuDNN Archive | NVIDIA Developer 

1.3.1 CUDA 与cuDNN 版本对应

Download cuDNN v8.9.7 (December 5th, 2023), for CUDA 12.x

Download cuDNN v8.9.7 (December 5th, 2023), for CUDA 11.x

Download cuDNN v8.9.6 (November 1st, 2023), for CUDA 12.x

Download cuDNN v8.9.6 (November 1st, 2023), for CUDA 11.x

Download cuDNN v8.9.5 (October 27th, 2023), for CUDA 12.x

Download cuDNN v8.9.5 (October 27th, 2023), for CUDA 11.x

Download cuDNN v8.9.4 (August 8th, 2023), for CUDA 12.x

Download cuDNN v8.9.4 (August 8th, 2023), for CUDA 11.x

Download cuDNN v8.9.3 (July 11th, 2023), for CUDA 12.x

Download cuDNN v8.9.3 (July 11th, 2023), for CUDA 11.x

Download cuDNN v8.9.2 (June 1st, 2023), for CUDA 12.x

Download cuDNN v8.9.2 (June 1st, 2023), for CUDA 11.x

Download cuDNN v8.9.1 (May 5th, 2023), for CUDA 12.x

Download cuDNN v8.9.1 (May 5th, 2023), for CUDA 11.x

Download cuDNN v8.9.0 (April 11th, 2023), for CUDA 12.x

Download cuDNN v8.9.0 (April 11th, 2023), for CUDA 11.x

Download cuDNN v8.8.1 (March 8th, 2023), for CUDA 12.x

Download cuDNN v8.8.1 (March 8th, 2023), for CUDA 11.x

Download cuDNN v8.8.0 (February 7th, 2023), for CUDA 12.0

Download cuDNN v8.8.0 (February 7th, 2023), for CUDA 11.x

Download cuDNN v8.7.0 (November 28th, 2022), for CUDA 11.x

Download cuDNN v8.7.0 (November 28th, 2022), for CUDA 10.2

Download cuDNN v8.6.0 (October 3rd, 2022), for CUDA 11.x

Download cuDNN v8.6.0 (October 3rd, 2022), for CUDA 10.2

Download cuDNN v8.5.0 (August 8th, 2022), for CUDA 11.x

Download cuDNN v8.5.0 (August 8th, 2022), for CUDA 10.2

Download cuDNN v8.4.1 (May 27th, 2022), for CUDA 11.x

Download cuDNN v8.4.1 (May 27th, 2022), for CUDA 10.2

Download cuDNN v8.4.0 (April 1st, 2022), for CUDA 11.x

Download cuDNN v8.4.0 (April 1st, 2022), for CUDA 10.2

Download cuDNN v8.3.3 (March 18th, 2022), for CUDA 11.5

Download cuDNN v8.3.3 (March 18th, 2022), for CUDA 10.2

Download cuDNN v8.3.2 (January 10th, 2022), for CUDA 11.5

Download cuDNN v8.3.2 (January 10th, 2022), for CUDA 10.2

Download cuDNN v8.3.1 (November 22nd, 2021), for CUDA 11.5

Download cuDNN v8.3.1 (November 22nd, 2021), for CUDA 10.2

Download cuDNN v8.3.0 (November 3rd, 2021), for CUDA 11.5

Download cuDNN v8.3.0 (November 3rd, 2021), for CUDA 10.2

Download cuDNN v8.2.4 (September 2nd, 2021), for CUDA 11.4

Download cuDNN v8.2.4 (September 2nd, 2021), for CUDA 10.2

Download cuDNN v8.2.2 (July 6th, 2021), for CUDA 11.4

Download cuDNN v8.2.2 (July 6th, 2021), for CUDA 10.2

Download cuDNN v8.2.1 (June 7th, 2021), for CUDA 11.x

Download cuDNN v8.2.1 (June 7th, 2021), for CUDA 10.2

Download cuDNN v8.2.0 (April 23rd, 2021), for CUDA 11.x

Download cuDNN v8.2.0 (April 23rd, 2021), for CUDA 10.2

Download cuDNN v8.1.1 (Feburary 26th, 2021), for CUDA 11.0,11.1 and 11.2

Download cuDNN v8.1.1 (Feburary 26th, 2021), for CUDA 10.2

Download cuDNN v8.1.0 (January 26th, 2021), for CUDA 11.0,11.1 and 11.2

Download cuDNN v8.1.0 (January 26th, 2021), for CUDA 10.2

Download cuDNN v8.0.5 (November 9th, 2020), for CUDA 11.1

Download cuDNN v8.0.5 (November 9th, 2020), for CUDA 11.0

Download cuDNN v8.0.5 (November 9th, 2020), for CUDA 10.2

Download cuDNN v8.0.5 (November 9th, 2020), for CUDA 10.1

Download cuDNN v8.0.4 (September 28th, 2020), for CUDA 11.1

Download cuDNN v8.0.4 (September 28th, 2020), for CUDA 11.0

Download cuDNN v8.0.4 (September 28th, 2020), for CUDA 10.2

Download cuDNN v8.0.4 (September 28th, 2020), for CUDA 10.1

Download cuDNN v8.0.3 (August 26th, 2020), for CUDA 11.0

Download cuDNN v8.0.3 (August 26th, 2020), for CUDA 10.2

Download cuDNN v8.0.3 (August 26th, 2020), for CUDA 10.1

Download cuDNN v8.0.2 (July 24th, 2020), for CUDA 11.0

Download cuDNN v8.0.2 (July 24th, 2020), for CUDA 10.2

Download cuDNN v8.0.2 (July 24th, 2020), for CUDA 10.1

Download cuDNN v8.0.1 RC2 (June 26th, 2020), for CUDA 11.0

Download cuDNN v8.0.1 RC2 (June 26th, 2020), for CUDA 10.2

Download cuDNN v7.6.5 (November 18th, 2019), for CUDA 10.2

Download cuDNN v7.6.5 (November 5th, 2019), for CUDA 10.1

Download cuDNN v7.6.5 (November 5th, 2019), for CUDA 10.0

Download cuDNN v7.6.5 (November 5th, 2019), for CUDA 9.2

Download cuDNN v7.6.5 (November 5th, 2019), for CUDA 9.0

Download cuDNN v7.6.4 (September 27, 2019), for CUDA 10.1

Download cuDNN v7.6.4 (September 27, 2019), for CUDA 10.0

Download cuDNN v7.6.4 (September 27, 2019), for CUDA 9.2

Download cuDNN v7.6.4 (September 27, 2019), for CUDA 9.0

Download cuDNN v7.6.3 (August 23, 2019), for CUDA 10.1

Download cuDNN v7.6.3 (August 23, 2019), for CUDA 10.0

Download cuDNN v7.6.3 (August 23, 2019), for CUDA 9.2

Download cuDNN v7.6.3 (August 23, 2019), for CUDA 9.0

Download cuDNN v7.6.2 (July 22, 2019), for CUDA 10.1

Download cuDNN v7.6.2 (July 22, 2019), for CUDA 10.0

Download cuDNN v7.6.2 (July 22, 2019), for CUDA 9.2

Download cuDNN v7.6.2 (July 22, 2019), for CUDA 9.0

Download cuDNN v7.6.1 (June 24, 2019), for CUDA 10.1

Download cuDNN v7.6.1 (June 24, 2019), for CUDA 10.0

Download cuDNN v7.6.1 (June 24, 2019), for CUDA 9.2

Download cuDNN v7.6.1 (June 24, 2019), for CUDA 9.0

Download cuDNN v7.6.0 (May 20, 2019), for CUDA 10.1

Download cuDNN v7.6.0 (May 20, 2019), for CUDA 10.0

Download cuDNN v7.6.0 (May 20, 2019), for CUDA 9.2

Download cuDNN v7.6.0 (May 20, 2019), for CUDA 9.0

Download cuDNN v7.5.1 (April 22, 2019), for CUDA 10.1

Download cuDNN v7.5.1 (April 22, 2019), for CUDA 10.0

Download cuDNN v7.5.1 (April 22, 2019), for CUDA 9.2

Download cuDNN v7.5.1 (April 22, 2019), for CUDA 9.0

Download cuDNN v7.5.0 (Feb 25, 2019), for CUDA 10.1

Download cuDNN v7.5.0 (Feb 21, 2019), for CUDA 10.0

Download cuDNN v7.5.0 (Feb 21, 2019), for CUDA 9.2

Download cuDNN v7.5.0 (Feb 21, 2019), for CUDA 9.0

Download cuDNN v7.4.2 (Dec 14, 2018), for CUDA 10.0

Download cuDNN v7.4.2 (Dec 14, 2018), for CUDA 9.2

Download cuDNN v7.4.2 (Dec 14, 2018), for CUDA 9.0

Download cuDNN v7.4.1 (Nov 8, 2018), for CUDA 10.0

Download cuDNN v7.4.1 (Nov 8, 2018), for CUDA 9.2

Download cuDNN v7.4.1 (Nov 8, 2018), for CUDA 9.0

Download cuDNN v7.3.1 (Sept 28, 2018), for CUDA 10.0

Download cuDNN v7.3.1 (Sept 28, 2018), for CUDA 9.2

Download cuDNN v7.3.1 (Sept 28, 2018), for CUDA 9.0

Download cuDNN v7.3.0 (Sept 19, 2018), for CUDA 10.0

Download cuDNN v7.3.0 (Sept 19, 2018), for CUDA 9.0

Download cuDNN v7.2.1 (August 7, 2018), for CUDA 9.2

Download cuDNN v7.1.4 (May 16, 2018), for CUDA 9.2

Download cuDNN v7.1.4 (May 16, 2018), for CUDA 9.0

Download cuDNN v7.1.4 (May 16, 2018), for CUDA 8.0

Download cuDNN v7.1.3 (April 17, 2018), for CUDA 9.1

Download cuDNN v7.1.3 (April 17, 2018), for CUDA 9.0

Download cuDNN v7.1.3 (April 17, 2018), for CUDA 8.0

Download cuDNN v7.1.2 (Mar 21, 2018), for CUDA 9.1 & 9.2

Download cuDNN v7.1.2 (Mar 21, 2018), for CUDA 9.0

Download cuDNN v7.0.5 (Dec 11, 2017), for CUDA 9.1

Download cuDNN v7.0.5 (Dec 5, 2017), for CUDA 9.0

Download cuDNN v7.0.5 (Dec 5, 2017), for CUDA 8.0

Download cuDNN v7.0.4 (Nov 13, 2017), for CUDA 9.0

Download cuDNN v6.0 (April 27, 2017), for CUDA 8.0

Download cuDNN v6.0 (April 27, 2017), for CUDA 7.5

Download cuDNN v5.1 (Jan 20, 2017), for CUDA 8.0

Download cuDNN v5.1 (Jan 20, 2017), for CUDA 7.5

Download cuDNN v5 (May 27, 2016), for CUDA 8.0

Download cuDNN v5 (May 12, 2016), for CUDA 7.5

Download cuDNN v4 (Feb 10, 2016), for CUDA 7.0 and later.

Download cuDNN v3 (September 8, 2015), for CUDA 7.0 and later.

Download cuDNN v2 (March 17,2015), for CUDA 6.5 and later.

Download cuDNN v1 (cuDNN 6.5 R1)

1.3.2 cuDNN安装配置

 选择与cuda版本匹配的cudnn版本,这里选v8.9.7版本。

 选择Local Installer for Linux x86_64 (Tar)

解压cudnn-linux-x86_64-8.9.7.29_cuda12-archive.tar.xz得到

拷贝并执行cudnn代码到cuda中:

cd cudnn-linux-x86_64-8.9.7.29_cuda12-archive
sudo cp -d include/cudnn*.h /usr/local/cuda/include
sudo cp -d lib/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*

验证cuDNN:

cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2

🌈我的分享也就到此结束啦🌈
如果我的分享也能对你有帮助,那就太好了!
若有不足,还请大家多多指正,我们一起学习交流!
📢未来的富豪们:点赞👍→收藏⭐→关注🔍,如果能评论下就太惊喜了!
感谢大家的观看和支持!最后,☺祝愿大家每天有钱赚!!!欢迎关注、关注!

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

FastAPI 学习笔记

FastAPI 学习笔记 0. 引言1. 快速开始2. 升级示例代码 0. 引言 在 Python 这个充满活力的生态系统中&#xff0c;FastAPI 应运而生&#xff0c;它是一个现代的、快速的 Web 框架&#xff0c;专注于构建 RESTful API。 无论你是一名有经验的 Python 开发人员&#xff0c;还是一…

ArcGIS学习(十四)OD分析

ArcGIS学习(十四)OD分析 1.上海市KFC与麦当劳的空间聚集度分析 本任务给大家带来的内容是网络节点关系分析。网络节点关系分析一般也叫OD分析。“O”指的是起点(ORIGIN),"D”指的是终点(DESTINATION),0D分析即为基于起点到终点的分析。 网络节点关系分析我们经常…

23-Java空对象模式 ( Null Object Pattern )

Java空对象模式 实现范例 在空对象模式&#xff08;Null Object Pattern&#xff09;中&#xff0c;一个空对象取代 NULL 对象实例的检查Null 对象不是检查空值&#xff0c;而是反应一个不做任何动作的关系&#xff0c;这样的 Null 对象也可以在数据不可用的时候提供默认的行为…

1. OSPF 基础实验(三):邻接关系和 LSA

1.3 OSPF 的邻接关系和 LSA 1.3.1 实验介绍 1.3.1.1 学习目标 1. 阐明在多路访问网络中接入多台路由器时的邻居关系建立过程 2. 控制 OSPF DR 的选举 3. 描述 5 种类型的 LSA 的内容&#xff0c;以及它们的作用 1.3.1.2 实验组网介绍 设备互联方式及 IP 地址规划如图所示…

NASA数据集——亚马逊盆地与其大气边界层之间各种气溶胶和气体交换率的估计值数据

简介 Pre-LBA ABLE-2A and ABLE-2B Expedition Data ABLE 2A 和 2B&#xff08;大气边界层实验&#xff09;数据包括亚马逊盆地与其大气边界层之间各种气溶胶和气体交换率的估计值&#xff0c;以及这些气溶胶和气体在边界层和自由对流层之间的移动过程。前言 – 人工智能教程…

【五】【算法分析与设计】双指针的初见

167. 两数之和 II - 输入有序数组 给你一个下标从 1 开始的整数数组 numbers &#xff0c;该数组已按 非递减顺序排列 &#xff0c;请你从数组中找出满足相加之和等于目标数 target 的两个数。如果设这两个数分别是 numbers[index(1)] 和 numbers[index(2)] &#xff0c;则 1 &…

Java项目源码基于springboot的家政服务平台的设计与实现

大家好我是程序员阿存&#xff0c;在java圈的辛苦码农。辛辛苦苦板砖&#xff0c;今天要和大家聊的是一款Java项目源码基于springboot的家政服务平台的设计与实现&#xff0c;项目源码以及部署相关请联系存哥&#xff0c;文末附上联系信息 。 项目源码&#xff1a;Java基于spr…

[计算机效率] 便笺的使用

2.4 便笺 便笺程序是一种方便用户记录、查看和编辑便签的简单应用程序。在Windows系统中&#xff0c;便笺通常作为系统自带的实用工具之一&#xff0c;可以帮助用户快速创建、编辑和组织便签&#xff0c;以便随时记录重要的信息、任务或提醒事项。 便笺程序通常具有以下特点&a…

岩土工程监测中振弦采集仪的选型指南与市场概况

岩土工程监测中振弦采集仪的选型指南与市场概况 振弦采集仪是岩土工程监测中常用的一种设备&#xff0c;用于测量土体的振动特性。它的选型指南和市场概况如下&#xff1a; 选型指南&#xff1a; 1. 测量参数&#xff1a;振弦采集仪可用于测量土体的振动振幅、频率、相位等参数…

美团2025春招第一次笔试题

第四题 题目描述 塔子哥拿到了一个大小为的数组&#xff0c;她希望删除一个区间后&#xff0c;使得剩余所有元素的乘积未尾至少有k个0。塔子哥想知道&#xff0c;一共有多少种不同的删除方案? 输入描述 第一行输入两个正整数 n,k 第二行输入n个正整数 a_i&#xff0c;代表…

OpenHarmony开发—购物示例应用

介绍 本示例展示在进场时加载进场动画&#xff0c;整体使用Tabs容器设计应用框架&#xff0c;通过TabContent组件设置分页面&#xff0c;在子页面中绘制界面。通过Navigation完成页面之间的切换。在详情页中通过 Video组件加载视频资源&#xff0c;使用CustomDialogController…

力扣刷题日记——L66.加一

1. 前言&#xff1a; 从今天开始打卡力扣&#xff0c;每天一道力扣题&#xff0c;然后将解题思路分享出来&#xff0c;纯原创。 2. 题目描述 给定一个由 整数 ****组成的 ****非空 数组所表示的非负整数&#xff0c;在该数的基础上加一。 最高位数字存放在数组的首位&#…

使用API有效率地管理Dynadot域名,使用API设置域名隐私保护

关于Dynadot Dynadot是通过ICANN认证的域名注册商&#xff0c;自2002年成立以来&#xff0c;服务于全球108个国家和地区的客户&#xff0c;为数以万计的客户提供简洁&#xff0c;优惠&#xff0c;安全的域名注册以及管理服务。 Dynadot平台操作教程索引&#xff08;包括域名邮…

SiT技术报告阅读

论文链接&#xff1a;SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers 报告链接&#xff1a;https://scalable-interpolant.github.io/ 文章目录 IntroFlow and DiffusionDiffusion-Based ModelsStochastic Interpolant an…

GPT出现Too many requests in 1 hour. Try again later.

换节点 这个就不用多说了&#xff0c;你都可以上GPT帐号了&#xff0c;哈…… 清除cooki 然后退出账号&#xff0c;重新登录即可

应用工程中获取Shapefile文件的图形信息并显示

本文用纯前端获取shp文件以及前后端交互的方式获取Shapefile文件中的图形信息 1.案例说明 在日常的WebGIS开发中&#xff0c;我们往往会面对&#xff0c;需要用户选择矢量数据&#xff0c;通过矢量数据中的空间范围信息&#xff0c;显示在界面上&#xff0c;并给用户的下一步…

wave库基本操作

wave 常见的语音信号处理python库有librosa, scipy, soundfile等等。wave库是python的标准库&#xff0c;对于python来说相对底层&#xff0c;wave不支持压缩/解压&#xff0c;但支持单声道/立体声语音的读取。 读取音频 import wavefile_path D:/ba.wav #文件路径 f wave…

数据库应用

约束 概念&#xff1a; 约束是一种限制&#xff0c;它通过对表的行或列的数据做出限制&#xff0c;来确保表的数据的正确性、完整性、有效性、唯一性。 分类&#xff1a; primary key&#xff1a;主键约束&#xff0c;指定某列的数据不能重复、唯一、非空。 not null&#…

QT----计算器

目录 1 搭建标准界面2、 逻辑编写2.1 初始化 github链接&#xff1a;基于qt的计算器 1 搭建标准界面 按照下图搭设界面 修改样式让这计算器看起来更像一点&#xff0c;同时对按钮分组进行样式编辑&#xff0c;添加字符串name,为number&#xff0c;其他按键为other。之前的文章…

Linux操作系统-07-Linux安装应用

一、使用rpm安装应用&#xff08;不推荐&#xff09; 先下载到本地&#xff0c;以.rpm文件名结尾&#xff0c;下载完成后&#xff0c;再安装 rpm -qa | grep mysql #查询当前系统是否有下载过mysql包 先上传mysql的rpm安装包到linux的opt目录 安装 rpm -ivh …