源码centos cmake3 linux

01-[Linux][regmap]regmap模块介绍

### 1、什么是regmap? Linux引入regmap是为了统一管理内核的i2c,spi等总线,将i2c、spi驱动做了一次重构,把I/O读写的重复逻辑在regmap中实现。只需初始化时指定**总线类型、寄存器位宽等**关键参数,即可通过regmap模型接口来操作器件寄存器。 将i2c、spi ......
regmap 模块 Linux 01

Linux网络服务之网络文件服务(NFS)

[TOC] ## 1. 存储和NFS共享 ### 1.1 NFS概述 - NFS(Network File System 网络文件服务)是文件系统,是操作系统内核来管理的,用于在网络上分享和访问文件的协议 ```bash NFS优点:节省本地存储空间,将常用的数据如:/home 目录,存放在NFS服 ......
网络 网络服务 文件 Linux NFS

Centos安装node-v17

https://nodejs.org/download/release/v17.9.1/ # 切换到统一的安装目录 cd /usr/local/src # 下载文件 wget https://nodejs.org/download/release/v17.9.1/node-v17.9.1-linux ......
Centos node-v node 17

fastapi后台任务模块<BackgroundTasks>源码理解

该文档主要对fastapi的后台模块《BackgroundTasks》一些源码的理解, 这样也可以加深理解异步及后台任务处理的理解。 使用导入例子: from fastapi import BackgroundTasks from fastapi import BackgroundTasks, Fa ......
BackgroundTasks 源码 后台 模块 任务

Linux9

端口 1. 端口(虚拟) 计算机程序之间的通讯,通过IP只能锁定计算机,但无法锁定具体程序。通过端口可以锁定计算机上具体的程序。 Linux系统是一个超大号小区,可以支持65535个端口,分为三类: 公认端口:1~1023,通常用于一些系统内置或知名程序的预留使用,如SSH服务的22端口,非特殊需要 ......
Linux9 Linux

centos7 更改root 密码

1.开机 按 e 键 utf8 后面 添加 rw init=/sysroot/bin/sh 按 ctrl -x 2.输入命令 chroot /sysroot 3. 输入命令 passwd root ,输入密码回车 再输入一次 回车 4.输入命令 touch /.autorelabel 5.输入命令 ......
密码 centos7 centos root

centos7环境-2 创建c++编译环境

``` sudo yum install gcc-c++ sudo yum install make sudo yum install cmake ``` ![image](https://img2023.cnblogs.com/blog/427803/202308/427803-202308091 ......
环境 centos7 centos

centos7 ipaddr无法使用

``` yum clean all wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum makecache yum update -y yum -y install in ......
centos7 centos ipaddr

Linux删除swp文件

原因 由于某次强制启动,导致文件没有正常保存,因此在用vim打开时一直提示存在swp文件需要注意 解决方法 rm -rf .*.swp 注意最前边的点.不要忘记 ......
文件 Linux swp

Linux各种错误

1、sudo: a terminal is required to read the password; either use the -S option to read from standard in or configure an askpass helper sudo: a terminal ......
错误 Linux

Linux Ubuntu Helloworld 模块 的编译 插入 删除

总述:编写.c文件和Makefile 文件->make->生成点.ko文件->insmode->lsmode->rmmode. 一、编写Hello.c 与 Makefile ubuntu@ubuntu-VirtualBox:/$ cd ~/Desktop/ubuntu@ubuntu-VirtualB ......
Helloworld 模块 Ubuntu Linux

linux polkit pkexec 本地提权漏洞

https://avd.aliyun.com/detail?id=AVD-2021-4034 https://www.cnblogs.com/lianglab/p/15850720.html https://cloud.tencent.com/developer/article/1945253 ......
漏洞 polkit pkexec linux

linux配置 崩溃生成core 转储

ulimit -c 查看core 文件大小限制 0表达不生成 ulimit -c unlimited 设置为不限制 vim /proc/sys/kernel/core_pattern 编辑生成规则 |/usr/share/apport/apport %p %s %c %d %P %E %p:进程ID ......
linux core

centos安装rpm升级

网站制作目录: 1、CentOS7如何使用rpm包安装mysql5.7.18的详细介绍 2、centos7怎么安装rpm软件包 3、如何在CentOS/RHEL上安装或升级新的内核版本 4、cleanmymac这个软件怎么样? 5、如何用CentOS7安装MySQL5.7(RPM安装) CentOS ......
centos rpm

CentOS虚拟机断电或强制关机,再开机出现问题

原作者地址:linux 开机错误 Entering emergency mode. Exit the shell to continue._whatday的博客-CSDN博客 虽然没怎么看懂,但是解决了,原作者牛逼 CentOS虚拟机断电或强制关机,再开机出现问题: 找出问题出现在哪:这里的 jou ......
CentOS 问题

macOS 13.5 编译Android11.0源码并导入android studio

1、准备编译环境 1. 电脑配置和版本 2. 安装jdk和xcode 具体参考官方文档 安装 jdk8u45 or newer 安装xcode命令行 安装编译依赖库 xcode-select --install brew install gmake libsdl git gnupg 3. 设置可以同 ......
源码 Android android studio macOS

记录一次-戴尔R730dx安装Tesla p40 24GB显卡,安装Centos系统

1.显卡bios中不需要配置 2.centos最好选择Centos8.2 带GUI 模式,勾选常用的系统组件,开发环境,.net。 3.安装时修改安装启动项内容如下 //修改镜像文件位置 hd:/dev/sdb4 //禁用独立显卡 rdblacklist=nouveaunouveau.modset= ......
显卡 Centos 系统 Tesla R730

linux修改时区为上海,linux修改时区 东八区

linux修改时区为上海,linux修改时区 东八区 原文链接:https://www.jingjia.net/article/yingxiao741067.html linux系统修改系统时间与时区的方法有哪些修改系统时间。 linux系统时钟有两个,一个是硬件时钟,即BIOS时间,就是我们进行C ......
时区 linux

Linux终端命令行提示符PS1格式修改

# zsh 先确定你是用的 shell 类型,运行echo $SHELL 如果你使用的是 zsh,那么修改 /etc/zshrc 其中有一行设置 PS1的值的,修改为 `PS1="%n@%m %1~ %# "` 其它的 zsh 中转义变量 ```shell %T 系统时间(时:分) %* 系统时间( ......
提示符 终端 命令 格式 Linux

Linux:如何在脚本中判断某个指令是否存在

学习自:检查 linux 命令是否存在的正确方式 指令:which 用法:which 命令 结果:一个字符串 存在:输出命令对应的可执行文件地址 不存在:输出信息/usr/bin/which: no wget in (/usr/local/sbin:/usr/local/bin:/usr/sbin: ......
指令 脚本 Linux

Linux 网络管理

# Linux 网络管理 [TOC] # 一. 什么是网络? ## 1.1 网络的定义 - 定义: 网络: internet 不同设备通过介质连接在一起,互相通信. IOT=物联网,Internet OF Things ## 1.2 网络传输介质 - 1位bit 1个0或1位置 - 1字节byte= ......
网络管理 Linux 网络

Bert Pytorch 源码分析:五、模型架构简图 REV1

## 注意力 ![在这里插入图片描述](https://img-blog.csdnimg.cn/abe43c5ca40948dfb3c195c4330b7ffa.jpeg#pic_center) ## FFN ![在这里插入图片描述](https://img-blog.csdnimg.cn/9f57 ......
简图 架构 源码 模型 Pytorch

Centos docker 随笔

一、docker 基本操作 查看docker版本:docker -v 启动docker:systemctl start docker 设置开机启动:systemctl enable docker 查看已启动服务:docker ps 查看已拉取镜像:docker images 二、docker mys ......
随笔 Centos docker

山东布谷科技直播程序源码使用Redis进行服务器横向扩展

从我分析的直播程序源码使用Redis进行服务器横向扩展可看出,redis服务器进行横向扩展,关系到了直播程序源码平台的系统性能、可用性与用户体验,所以,这也是直播程序源码部署服务器中不可或缺的一步。 ......
布谷 程序源码 横向 源码 服务器

正点原子 Linux C ——信号的产生和处理

信号的产生: 方式1: Shell 命令 kill 命令,Ctrl+C 或者 Ctrl+\ 方式2:使用系统调用 kill() #include <sys/types.h> #include <signal.h> /** @pid:要发送的进程号 @signum:参数signum指定需要发送的信号编 ......
原子 信号 Linux

rocky linux:安装pytorch(pytorch 2.0.1 / Python 3.9.16)

一,pytorch官网: https://pytorch.org/ 如图: 根据自己的需求选择版本、平台、语言环境等信息, 然后运行命令 二,运行pip安装命令: [root@img bin]# pip3 install torch torchvision torchaudio --index-ur ......
pytorch Python rocky linux 16

rocky linux:安装ffmpeg(ffmpeg 5.1.3/rocky linux 9.2)

一,ffmpeg官网: 网址: http://ffmpeg.org/ 如图: 说明:最新版本出到了6.0, 我们从dnf通道安装,版本可能略低 二,安装rpmfusion库 [root@img ~]# dnf install --nogpgcheck https://mirrors.rpmfusio ......
ffmpeg rocky linux 9.2

rocky linux:编译安装python3.11.4(rocky linux 9.2)

一,查看现有的版本: 1,本地版本 [root@img ~]# python --version Python 3.9.16 2,现在的最新版本: 访问官网: https://www.python.org/ 如图: 可以看到线上的最新版本是3.11.4 二,编译/安装: 1,下载: 先复制下载地址 ......
rocky linux python3 python 11.4

Centos7 安装 postgresql-11

参考:https://blog.csdn.net/weixin_46732884/article/details/124050982 参考:https://www.fengnayun.com/news/content/293898.html 1、添加PostgreSQL Yum存储库 yum ins ......
postgresql Centos7 Centos 11

Linux系统Redis安装

第一步:安装gcc ``` yum install -y gcc 或 apt install -y gcc ``` 安装步骤 cd /data/soft wget http://download.redis.io/releases/redis-5.0.7.tar.gz tar -zxvf redis ......
系统 Linux Redis