记一次CentOS 8 部署packstack部署OpenStack失败案例,请直接看最后
首先你需要一台安装好CentOS8 的虚拟机,相关参数如图。两块网卡,网卡1 NAT IP 192.168.100.100 GW=192.168.100.2 网卡2 可不做配置。能ping通百度。创建完成虚拟机记得打好快照。
-
开机编辑基本配置环境变量
[root@localhost ~]# nmcli connection show
NAME UUID TYPE DEVICE
ens33 02b0b195-3657-4ea3-81a7-cdfcbac06a81 ethernet ens33
ens34 42df5190-f1c7-4f3c-8a26-a2d6db51737d ethernet –
[root@localhost ~]# nmcli connection modify ens33 ipv4.addresses 192.168.100.100/24 ipv4.gateway 192.168.100.2 ipv4.dns 114.114.114.114 ipv4.method manual
[root@localhost ~]# nmcli connection reload ens33 && nmcli connection up ens33 && nmcli connection up ens33
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/6)
连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/7) -
遇到如下报错,原因在2022年1月31日,CentOS团队终于从官方镜像中移除CentOS 8的所有包。CentOS 8已于2021年12月31日寿终正寝,但软件包仍在官方镜像上保留了一段时间。现在他们被转移到https://vault.centos.org
[root@localhost ~]# sudo dnf update -y
CentOS Linux 8 - AppStream 56 B/s | 38 B 00:00
错误:为 repo ‘appstream’ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist
解决方法:
如果你仍然需要运行CentOS 8,你可以在/etc/yum.repos.d中更新一下源。使用vault.centos.org代替mirror.centos.org。
[root@localhost ~]# sudo sed -i -e “s|mirrorlist=|#mirrorlist=|g” /etc/yum.repos.d/CentOS-*
[root@localhost ~]# sudo sed -i -e “s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g” /etc/yum.repos.d/CentOS-*
- 网络脚本已弃用,默认情况下不安装,因此需要显式安装,如果不安装重启虚拟机network 将不可用。
sudo dnf install network-scripts -y
禁用防火墙和网络管理器
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo systemctl disable NetworkManager
sudo systemctl stop NetworkManager
sudo systemctl enable network
sudo systemctl start network
sudo setenforce 0
sudo sed -i ‘s/^SELINUX=.*/SELINUX=permissive/g’ /etc/selinux/config
- 遇到问题 Failed to set locale, defaulting to C.UTF-8
[root@localhost ~]# cat /etc/environment
LANG=en_US.utf-8
LLC_ALL=en_US.utf-8
[root@localhost ~]# sudo dnf config-manager --enable powertools
Failed to set locale, defaulting to C.UTF-8
[root@localhost ~]# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
zh_HK
zh_HK.utf8
zh_SG
zh_SG.gbk
zh_SG.utf8
zh_TW
zh_TW.euctw
zh_TW.utf8
[root@localhost ~]# dnf install langpacks-en glibc-all-langpacks -y
Last metadata expiration check: 0:00:31 ago on Sat 25 Mar 2023 10:49:10 AM EDT.
Package langpacks-en-1.0-12.el8.noarch is already installed.
Package glibc-all-langpacks-2.28-164.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
CentOS 8中执行命令,出现报错:Failed to set locale, defaulting to C.UTF-8
报错原因:
1、没有安装相应的语言包。
2、没有设置正确的语言环境。
解决方法1:安装语言包
设置语言环境需使用命令 locale
locale -a 命令,查看目前系统已安装的语言包
安装中文语言包,命令yum install glibc-langpack-zh
安装英文语言包,命令 dnf install glibc-langpack-en 或 dnf install langpacks-en glibc-all-langpacks -y
解决方法2:设置正确的语言环境
echo “export LC_ALL=en_US.UTF-8” >> /etc/profile
source /etc/profile
或使用命令locale -gen en_US.UTF-8
- 发现错误 No match for argument: centos-release-openstack-yoga
[root@localhost ~]# sudo dnf config-manager --enable powertools
[root@localhost ~]# sudo dnf install -y centos-release-openstack-yoga
CentOS Linux 8 - PowerTools 6.2 kB/s | 4.3 kB 00:00
No match for argument: centos-release-openstack-yoga
Error: Unable to find a match: centos-release-openstack-yoga
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@localhost ~]# dnf --disablerepo ‘*’ --enablerepo extras swap centos-linux-repos centos-stream-repos
Last metadata expiration check: 1:41:22 ago on Sat 25 Mar 2023 09:19:08 AM EDT.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
centos-stream-repos noarch 8-3.el8 extras 19 k
Removing:
centos-linux-repos noarch 8-3.el8 @baseos 26 k
Transaction Summary
Install 1 Package
Remove 1 Package
Total download size: 19 k
Is this ok [y/N]: y
Is this ok [y/N]: y
Downloading Packages:
centos-stream-repo 0% [ ] — B/s | 0 B --:-- ETA
centos-stream-repo 0% [ ] — B/s | 0 B --:-- ETA
centos-stream-repos-8-3.el8.noarch.rpm 1.2 kB/s | 19 kB 00:16
Total 1.2 kB/s | 19 kB 00:16
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : centos-stream-repos-8-3.el8.noarch 1/2
Erasing : centos-linux-repos-8-3.el8.noarch 2/2
warning: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo saved as /etc/yum.repos.d/CentOS-Linux-PowerTools.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-Plus.repo saved as /etc/yum.repos.d/CentOS-Linux-Plus.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo saved as /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-FastTrack.repo saved as /etc/yum.repos.d/CentOS-Linux-FastTrack.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-Extras.repo saved as /etc/yum.repos.d/CentOS-Linux-Extras.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-Devel.repo saved as /etc/yum.repos.d/CentOS-Linux-Devel.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo saved as /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-BaseOS.repo saved as /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.rpmsave
warning: /etc/yum.repos.d/CentOS-Linux-AppStream.repo saved as /etc/yum.repos.d/CentOS-Linux-AppStream.repo.rpmsave
Verifying : centos-stream-repos-8-3.el8.noarch 1/2
Verifying : centos-linux-repos-8-3.el8.noarch 2/2
Installed:
centos-stream-repos-8-3.el8.noarch
Removed:
centos-linux-repos-8-3.el8.noarch
Complete!
[root@localhost ~]# dnf distro-sync
shadow-utils-subid-2:4.6-17.el8.x86_64
Complete!
[root@localhost ~]# cat /etc/redhat-release
CentOS Stream release 8
[root@localhost ~]# reboot
友情提示:Centos 8 Stream 官方支持到2024年5月31日,请小伙伴们注意哦!
-
重启过程中可能job is runing for Flush Journal to Persistent Storage (1min 22s A start1min 30s) ,这里只能等,时间到了会正常开机的。
-
正常安装
[root@localhost ~]# sudo dnf install -y centos-release-openstack-yoga
CentOS Stream 8 - Extras common packages 646 B/s | 5.3 kB 00:08
Dependencies resolved.
===========================================================================
Package Arch Version Repository Size
===========================================================================
Installing:
centos-release-openstack-yoga noarch 1-1.el8s extras-common 8.9 k
Installing dependencies:
centos-release-advanced-virtualization
noarch 1.0-4.el8 extras 16 k
centos-release-ceph-pacific noarch 1.0-2.el8 extras 8.9 k
centos-release-messaging noarch 1-3.el8 extras 9.5 k
centos-release-nfv-common noarch 1-3.el8 extras 9.3 k
centos-release-nfv-openvswitch noarch 1-3.el8 extras 8.6 k
centos-release-rabbitmq-38 noarch 1-3.el8 extras 8.4 k
centos-release-storage-common noarch 2-2.el8 extras 9.4 k
centos-release-virt-common noarch 1-2.el8 extras 8.9 k
Transaction Summary
Install 9 Packages
Total download size: 88 k
Installed size: 32 k
Downloading Packages:
184% [===============================] 1.5 kB/s | 1.3 kB (1/9): centos-release-ceph-pacific-1.0-2.e 1.7 kB/s | 8.9 kB 00:05
(2/9): centos-release-messaging-1-3.el8.no 1.8 kB/s | 9.5 kB 00:05
(3/9): centos-release-advanced-virtualizat 3.0 kB/s | 16 kB 00:05
(4/9): centos-release-nfv-common-1-3.el8.n 57 kB/s | 9.3 kB 00:00
(5/9): centos-release-nfv-openvswitch-1-3. 45 kB/s | 8.6 kB 00:00
(6/9): centos-release-rabbitmq-38-1-3.el8. 39 kB/s | 8.4 kB 00:00
(7/9): centos-release-storage-common-2-2.e 48 kB/s | 9.4 kB 00:00
(8/9): centos-release-virt-common-1-2.el8. 55 kB/s | 8.9 kB 00:00
(9/9): centos-release-openstack-yoga-1-1.e 870 B/s | 8.9 kB 00:10
Total 4.7 kB/s | 88 kB 00:18
CentOS Stream 8 - Extras common packages 2.1 MB/s | 2.1 kB 00:00
Importing GPG key 0x1D997668:
Userid : “CentOS Extras SIG (https://wiki.centos.org/SpecialInterestGroup) security@centos.org”
Fingerprint: 363F C097 2F64 B699 AED3 968E 1FF6 A217 1D99 7668
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : centos-release-virt-common-1-2.el8.noarch 1/9
Installing : centos-release-advanced-virtualization-1.0-4.el 2/9
Running scriptlet: centos-release-advanced-virtualization-1.0-4.el 2/9
Installing : centos-release-storage-common-2-2.el8.noarch 3/9
Installing : centos-release-ceph-pacific-1.0-2.el8.noarch 4/9
Running scriptlet: centos-release-ceph-pacific-1.0-2.el8.noarch 4/9
Installing : centos-release-nfv-common-1-3.el8.noarch 5/9
Running scriptlet: centos-release-nfv-common-1-3.el8.noarch 5/9
Installing : centos-release-nfv-openvswitch-1-3.el8.noarch 6/9
Installing : centos-release-messaging-1-3.el8.noarch 7/9
Installing : centos-release-rabbitmq-38-1-3.el8.noarch 8/9
Installing : centos-release-openstack-yoga-1-1.el8s.noarch 9/9
Verifying : centos-release-advanced-virtualization-1.0-4.el 1/9
Verifying : centos-release-ceph-pacific-1.0-2.el8.noarch 2/9
Verifying : centos-release-messaging-1-3.el8.noarch 3/9
Verifying : centos-release-nfv-common-1-3.el8.noarch 4/9
Verifying : centos-release-nfv-openvswitch-1-3.el8.noarch 5/9
Verifying : centos-release-rabbitmq-38-1-3.el8.noarch 6/9
Verifying : centos-release-storage-common-2-2.el8.noarch 7/9
Verifying : centos-release-virt-common-1-2.el8.noarch 8/9
Verifying : centos-release-openstack-yoga-1-1.el8s.noarch 9/9
Installed:
centos-release-advanced-virtualization-1.0-4.el8.noarch
centos-release-ceph-pacific-1.0-2.el8.noarch
centos-release-messaging-1-3.el8.noarch
centos-release-nfv-common-1-3.el8.noarch
centos-release-nfv-openvswitch-1-3.el8.noarch
centos-release-openstack-yoga-1-1.el8s.noarch
centos-release-rabbitmq-38-1-3.el8.noarch
centos-release-storage-common-2-2.el8.noarch
centos-release-virt-common-1-2.el8.noarch
Complete!
[root@localhost ~]#
[root@localhost ~]# sudo dnf install -y openstack-packstack
Last metadata expiration check: 0:00:37 ago on Sat 25 Mar 2023 11:22:52 AM EDT.
Package openstack-packstack-1:20.0.0-1.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
- 修改主机名和/etc/hosts配置文件,对于具有默认选项的简单单节点 OpenStack 部署,请运行以下命令:
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.100 controller
[root@localhost ~]#
[root@localhost ~]# hostnamectl set-hostname controller
[root@localhost ~]# bash
[root@controller ~]# sudo packstack --allinone
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20230325-112822-ddmkvwox/openstack-setup.log
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DONE ]
Setting up ssh keys [ DONE ]
Preparing servers [ DONE ]
Pre installing Puppet and discovering hosts’ details [ DONE ]
Preparing pre-install entries [ DONE ]
Setting up CACERT [ DONE ]
Preparing AMQP entries [ DONE ]
Preparing MariaDB entries [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Preparing Keystone entries [ DONE ]
Preparing Glance entries [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Preparing Cinder entries [ DONE ]
Preparing Nova API entries [ DONE ]
Creating ssh keys for Nova migration [ DONE ]
Gathering ssh host keys for Nova migration [ DONE ]
Preparing Nova Compute entries [ DONE ]
Preparing Nova Scheduler entries [ DONE ]
Preparing Nova VNC Proxy entries [ DONE ]
Preparing OpenStack Network-related Nova entries [ DONE ]
Preparing Nova Common entries [ DONE ]
Preparing Neutron API entries [ DONE ]
Preparing Neutron L3 entries [ DONE ]
Preparing Neutron L2 Agent entries [ DONE ]
Preparing Neutron DHCP Agent entries [ DONE ]
Preparing Neutron Metering Agent entries [ DONE ]
Checking if NetworkManager is enabled and running [ DONE ]
Preparing OpenStack Client entries [ DONE ]
Preparing Horizon entries [ DONE ]
Preparing Swift builder entries [ DONE ]
Preparing Swift proxy entries [ DONE ]
Preparing Swift storage entries [ DONE ]
Preparing Gnocchi entries [ DONE ]
Preparing Redis entries [ DONE ]
Preparing Ceilometer entries [ DONE ]
Preparing Aodh entries [ DONE ]
Preparing Puppet manifests [ DONE ]
Copying Puppet modules and manifests [ DONE ]
Applying 192.168.100.100_controller.pp
Testing if puppet apply is finished: 192.168.100.100_controller.pp [ | ]
最后到这里卡住了,发现是源更新太多了导致失败,所以建议部署的时候直接找CentOS 8 Steam的镜像系统。
相关文章:
记一次CentOS 8 部署packstack部署OpenStack失败案例,请直接看最后
首先你需要一台安装好CentOS8 的虚拟机,相关参数如图。两块网卡,网卡1 NAT IP 192.168.100.100 GW192.168.100.2 网卡2 可不做配置。能ping通百度。创建完成虚拟机记得打好快照。 开机编辑基本配置环境变量 [rootlocalhost ~]# nmcli connection show NA…...
【2023春招】美团技术岗笔试10min+AK
随手投递了前端&移动端,笔试2道算法+选择+行测题(为什么笔试会有行测题?) 目录 T1-火车栈结构 题意 输入描述 输出描述 样例 AC_Code T2-春游...
Echarts实现图表自适应屏幕分辨率
一:简介 之前做项目的时候要实现echarts图表随浏览器窗口大小变化而改变,echarts本身提供了一个resize()方法,然后我们需要用一个函数实现浏览器窗口监听,最初我选用的是window.onresize方法,当页面只有一个图表时可以…...

【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题一
相关链接 【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题一 【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题二 1 题目 一.问题…...

【蓝桥杯嵌入式】第十三届蓝桥杯嵌入式国赛客观题以及详细题解
题1 概念题。 USRAT:异步串口通信,常用于数据传输;SW-DP:SWD 的全称应该是 The Serial Wire Debug Port (SW-DP),也就是串行调试端口,是 >ARM 目前支持的两种调试端口之一;JTAG-DP:另一个调试…...
java中Map遍历的4种方式
目录 1、map.entrySet()方式 2、map.keySet()方式 3、map.values()方式 4、forEach方式 本文以如下map案例: Map<String, String> map new HashMap<>(); map.put("student1", "张三"); map.put("student2", "…...

GCC 编译器的主要组件和编译过程
主要组件: 分析器:分析器将源语言程序代码转换为汇编语言。因为要从一种格式转换为另一种格式(C到汇编),所以分析器需要知道目标机器的汇编语言。 汇编器:汇编器将汇编语言代码转换为CPU可以执行字节码。 …...
蓝桥杯冲刺 - week2
文章目录💬前言🌲day1最大和 (DP质因数分解)901. 滑雪 - 记忆化搜索🌲day21227. 分巧克力 - 二分🌲day31221. 四平方和 - 空间换时间1230. K倍区间🌲day41076. 迷宫问题 - 路径2017-迷宫-填空🌲day5848. 有…...
第十四届蓝桥杯三月真题刷题训练——第 20 天
目录 第 1 题:纸张尺寸 问题描述 输入格式 输出格式 样例输入1 样例输出1 样例输入 2 样例输出 2 运行限制 代码: 解析: 第 2 题:最大数字 第 3 题:全排列的价值_递推公式 问题描述 输入格式 输出格式…...

【C++】科普:C++中的浮点数怎么在计算机中表示?
这里我们以8.25这个数为例说明计算机时如何存取float类型的数据的: float a 8.25;引言 1. 所占位数 首先,明确一个概念,float类型的数据在常规计算机中通常占4个字节,也就是32位。其内存分布如图: 位字段说明所占位…...

Linux 多线程:多线程和多进程的对比
目录一、多进程优缺点二、多线程优缺点三、使用多执行流的场景在多任务处理中,我们既可以使用多进程,也可以使用多线程。但多进程和多线程并不是随意选择的,因为它们应对的场景不同,优缺点也不同。 一、多进程优缺点 多进程就是在…...

IO流你了解多少
IO流你了解多少 🏠个人主页:shark-Gao 🧑个人简介:大家好,我是shark-Gao,一个想要与大家共同进步的男人😉😉 🎉目前状况:23届毕业生,目前在某公…...
【C++】C++ 11 新特性之auto关键字
文章目录类型别名的思考auto简介auto关键字的特性类型别名的思考 随着程序越来越复杂,程序中用到的类型也越来越复杂,经常体现在: 类型难于拼写含义不明确导致容易出错 #include <string> #include <map> int main() {std::ma…...
nodejs的后端框架egg,thinkjs,nestjs,nuxtjs,nextjs对比
1. Egg.js:优点:Egg.js是一个基于Koa的Node.js企业级应用开发框架,它提供了完整的开发规范和一套稳定性和安全性较高的架构体系,能够帮助开发者快速构建高可用、高性能的应用程序。同时,Egg.js还提供了很多自定义插件和…...
SpringBoot @SpringBootTest 无法启动服务
这几天在看Hikari、Druid连接池。按照网上代码写Junit测试类。当时代码如下: package com.ceaning.crudp.utils;import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; impo…...

PyTorch深度学习实战 | 神经网络的优化难题
即使我们可以利用反向传播来进行优化,但是训练过程中仍然会出现一系列的问题,比如鞍点、病态条件、梯度消失和梯度爆炸,对此我们首先提出了小批量随机梯度下降,并且基于批量随机梯度下降的不稳定的特点,继续对其做出方…...

如何缩小pdf文件的大小便于上传?在线压缩pdf工具推荐
平时在工作、学习时我们经常都需要用到pdf文件,那么当遇上需要将pdf压缩大小的时候,该使用哪种pdf压缩(https://www.yasuotu.com/pdfyasuo)方式呢?今天分享一个在线压缩pdf的方法,需要的小伙伴一起来了解…...

使用C++编写一个AVL的增删改查代码并附上代码解释
//qq460219753提供其他代码帮助 #include <iostream> using namespace std;struct Node {int data;Node *left;Node *right;int height; };// 获取结点高度 int height(Node *node) {if (node nullptr){return 0;}return node->height; }// 获取两个数中较大的一个 i…...
React/ReactNative 状态管理: redux-toolkit 如何使用
有同学反馈开发 ReactNative 应用时状态管理不是很明白,接下来几篇文章我们来对比下 React 及 ReactNative 状态管理常用的几种框架的使用和优缺点。 上一篇文章介绍了 redux 的使用,这篇文章我们来看下 redux 的升级版:redux-toolkit。 下…...

14基于双层优化的电动汽车优化调度研究
说明书 MATLAB代码:基于双层优化的电动汽车优化调度研究 关键词:双层优化 选址定容 输配协同 时空优化 参考文档:《考虑大规模电动汽车接入电网的双层优化调度策略_胡文平》中文版 《A bi-layer optimization based temporal and sp…...
IGP(Interior Gateway Protocol,内部网关协议)
IGP(Interior Gateway Protocol,内部网关协议) 是一种用于在一个自治系统(AS)内部传递路由信息的路由协议,主要用于在一个组织或机构的内部网络中决定数据包的最佳路径。与用于自治系统之间通信的 EGP&…...

微服务商城-商品微服务
数据表 CREATE TABLE product (id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 商品id,cateid smallint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT 类别Id,name varchar(100) NOT NULL DEFAULT COMMENT 商品名称,subtitle varchar(200) NOT NULL DEFAULT COMMENT 商…...
WEB3全栈开发——面试专业技能点P2智能合约开发(Solidity)
一、Solidity合约开发 下面是 Solidity 合约开发 的概念、代码示例及讲解,适合用作学习或写简历项目背景说明。 🧠 一、概念简介:Solidity 合约开发 Solidity 是一种专门为 以太坊(Ethereum)平台编写智能合约的高级编…...

BCS 2025|百度副总裁陈洋:智能体在安全领域的应用实践
6月5日,2025全球数字经济大会数字安全主论坛暨北京网络安全大会在国家会议中心隆重开幕。百度副总裁陈洋受邀出席,并作《智能体在安全领域的应用实践》主题演讲,分享了在智能体在安全领域的突破性实践。他指出,百度通过将安全能力…...
大模型多显卡多服务器并行计算方法与实践指南
一、分布式训练概述 大规模语言模型的训练通常需要分布式计算技术,以解决单机资源不足的问题。分布式训练主要分为两种模式: 数据并行:将数据分片到不同设备,每个设备拥有完整的模型副本 模型并行:将模型分割到不同设备,每个设备处理部分模型计算 现代大模型训练通常结合…...

自然语言处理——Transformer
自然语言处理——Transformer 自注意力机制多头注意力机制Transformer 虽然循环神经网络可以对具有序列特性的数据非常有效,它能挖掘数据中的时序信息以及语义信息,但是它有一个很大的缺陷——很难并行化。 我们可以考虑用CNN来替代RNN,但是…...

Java面试专项一-准备篇
一、企业简历筛选规则 一般企业的简历筛选流程:首先由HR先筛选一部分简历后,在将简历给到对应的项目负责人后再进行下一步的操作。 HR如何筛选简历 例如:Boss直聘(招聘方平台) 直接按照条件进行筛选 例如:…...

windows系统MySQL安装文档
概览:本文讨论了MySQL的安装、使用过程中涉及的解压、配置、初始化、注册服务、启动、修改密码、登录、退出以及卸载等相关内容,为学习者提供全面的操作指导。关键要点包括: 解压 :下载完成后解压压缩包,得到MySQL 8.…...

渗透实战PortSwigger靶场:lab13存储型DOM XSS详解
进来是需要留言的,先用做简单的 html 标签测试 发现面的</h1>不见了 数据包中找到了一个loadCommentsWithVulnerableEscapeHtml.js 他是把用户输入的<>进行 html 编码,输入的<>当成字符串处理回显到页面中,看来只是把用户输…...

保姆级【快数学会Android端“动画“】+ 实现补间动画和逐帧动画!!!
目录 补间动画 1.创建资源文件夹 2.设置文件夹类型 3.创建.xml文件 4.样式设计 5.动画设置 6.动画的实现 内容拓展 7.在原基础上继续添加.xml文件 8.xml代码编写 (1)rotate_anim (2)scale_anim (3)translate_anim 9.MainActivity.java代码汇总 10.效果展示 逐帧…...