记一次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的镜像系统。
相关文章:
![](https://www.ngui.cc/images/no-images.jpg)
记一次CentOS 8 部署packstack部署OpenStack失败案例,请直接看最后
首先你需要一台安装好CentOS8 的虚拟机,相关参数如图。两块网卡,网卡1 NAT IP 192.168.100.100 GW192.168.100.2 网卡2 可不做配置。能ping通百度。创建完成虚拟机记得打好快照。 开机编辑基本配置环境变量 [rootlocalhost ~]# nmcli connection show NA…...
![](https://www.ngui.cc/images/no-images.jpg)
【2023春招】美团技术岗笔试10min+AK
随手投递了前端&移动端,笔试2道算法+选择+行测题(为什么笔试会有行测题?) 目录 T1-火车栈结构 题意 输入描述 输出描述 样例 AC_Code T2-春游...
![](https://www.ngui.cc/images/no-images.jpg)
Echarts实现图表自适应屏幕分辨率
一:简介 之前做项目的时候要实现echarts图表随浏览器窗口大小变化而改变,echarts本身提供了一个resize()方法,然后我们需要用一个函数实现浏览器窗口监听,最初我选用的是window.onresize方法,当页面只有一个图表时可以…...
![](https://img-blog.csdnimg.cn/6a6894a3d7dc43a9a43b295ab94e2fc9.png)
【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题一
相关链接 【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题一 【2023年第十一届泰迪杯数据挖掘挑战赛】B题:产品订单的数据分析与需求预测 建模及python代码详解 问题二 1 题目 一.问题…...
![](https://img-blog.csdnimg.cn/be8693689e1c4c3ab8ec63923c800607.png)
【蓝桥杯嵌入式】第十三届蓝桥杯嵌入式国赛客观题以及详细题解
题1 概念题。 USRAT:异步串口通信,常用于数据传输;SW-DP:SWD 的全称应该是 The Serial Wire Debug Port (SW-DP),也就是串行调试端口,是 >ARM 目前支持的两种调试端口之一;JTAG-DP:另一个调试…...
![](https://www.ngui.cc/images/no-images.jpg)
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", "…...
![](https://img-blog.csdnimg.cn/5cf9e6b0e5b2480999a72347f9111155.png)
GCC 编译器的主要组件和编译过程
主要组件: 分析器:分析器将源语言程序代码转换为汇编语言。因为要从一种格式转换为另一种格式(C到汇编),所以分析器需要知道目标机器的汇编语言。 汇编器:汇编器将汇编语言代码转换为CPU可以执行字节码。 …...
![](https://www.ngui.cc/images/no-images.jpg)
蓝桥杯冲刺 - week2
文章目录💬前言🌲day1最大和 (DP质因数分解)901. 滑雪 - 记忆化搜索🌲day21227. 分巧克力 - 二分🌲day31221. 四平方和 - 空间换时间1230. K倍区间🌲day41076. 迷宫问题 - 路径2017-迷宫-填空🌲day5848. 有…...
第十四届蓝桥杯三月真题刷题训练——第 20 天
目录 第 1 题:纸张尺寸 问题描述 输入格式 输出格式 样例输入1 样例输出1 样例输入 2 样例输出 2 运行限制 代码: 解析: 第 2 题:最大数字 第 3 题:全排列的价值_递推公式 问题描述 输入格式 输出格式…...
![](https://img-blog.csdnimg.cn/3f8ccdd2c64c4954afa94e7e058d02ce.png)
【C++】科普:C++中的浮点数怎么在计算机中表示?
这里我们以8.25这个数为例说明计算机时如何存取float类型的数据的: float a 8.25;引言 1. 所占位数 首先,明确一个概念,float类型的数据在常规计算机中通常占4个字节,也就是32位。其内存分布如图: 位字段说明所占位…...
![](https://img-blog.csdnimg.cn/292e170d643e4c2cba1d72e6307a6412.jpeg#pic_center)
Linux 多线程:多线程和多进程的对比
目录一、多进程优缺点二、多线程优缺点三、使用多执行流的场景在多任务处理中,我们既可以使用多进程,也可以使用多线程。但多进程和多线程并不是随意选择的,因为它们应对的场景不同,优缺点也不同。 一、多进程优缺点 多进程就是在…...
![](https://img-blog.csdnimg.cn/img_convert/d736ed7db8184b36e5e12597e4321d85.png)
IO流你了解多少
IO流你了解多少 🏠个人主页:shark-Gao 🧑个人简介:大家好,我是shark-Gao,一个想要与大家共同进步的男人😉😉 🎉目前状况:23届毕业生,目前在某公…...
![](https://www.ngui.cc/images/no-images.jpg)
【C++】C++ 11 新特性之auto关键字
文章目录类型别名的思考auto简介auto关键字的特性类型别名的思考 随着程序越来越复杂,程序中用到的类型也越来越复杂,经常体现在: 类型难于拼写含义不明确导致容易出错 #include <string> #include <map> int main() {std::ma…...
![](https://www.ngui.cc/images/no-images.jpg)
nodejs的后端框架egg,thinkjs,nestjs,nuxtjs,nextjs对比
1. Egg.js:优点:Egg.js是一个基于Koa的Node.js企业级应用开发框架,它提供了完整的开发规范和一套稳定性和安全性较高的架构体系,能够帮助开发者快速构建高可用、高性能的应用程序。同时,Egg.js还提供了很多自定义插件和…...
![](https://www.ngui.cc/images/no-images.jpg)
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…...
![](https://img-blog.csdnimg.cn/img_convert/a06ad62832e5490dae8b02076c28ffa6.jpeg)
PyTorch深度学习实战 | 神经网络的优化难题
即使我们可以利用反向传播来进行优化,但是训练过程中仍然会出现一系列的问题,比如鞍点、病态条件、梯度消失和梯度爆炸,对此我们首先提出了小批量随机梯度下降,并且基于批量随机梯度下降的不稳定的特点,继续对其做出方…...
![](https://img-blog.csdnimg.cn/img_convert/c6f18d87dc4b758c0cb125f32433a903.jpeg)
如何缩小pdf文件的大小便于上传?在线压缩pdf工具推荐
平时在工作、学习时我们经常都需要用到pdf文件,那么当遇上需要将pdf压缩大小的时候,该使用哪种pdf压缩(https://www.yasuotu.com/pdfyasuo)方式呢?今天分享一个在线压缩pdf的方法,需要的小伙伴一起来了解…...
![](https://img-blog.csdnimg.cn/a1c560979c734ecf93214f44bed9090e.png)
使用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…...
![](https://www.ngui.cc/images/no-images.jpg)
React/ReactNative 状态管理: redux-toolkit 如何使用
有同学反馈开发 ReactNative 应用时状态管理不是很明白,接下来几篇文章我们来对比下 React 及 ReactNative 状态管理常用的几种框架的使用和优缺点。 上一篇文章介绍了 redux 的使用,这篇文章我们来看下 redux 的升级版:redux-toolkit。 下…...
![](https://img-blog.csdnimg.cn/e85741140a59462fbe016e6188e462e6.png)
14基于双层优化的电动汽车优化调度研究
说明书 MATLAB代码:基于双层优化的电动汽车优化调度研究 关键词:双层优化 选址定容 输配协同 时空优化 参考文档:《考虑大规模电动汽车接入电网的双层优化调度策略_胡文平》中文版 《A bi-layer optimization based temporal and sp…...
![](https://www.ngui.cc/images/no-images.jpg)
古茗科技面试:为什么 ElasticSearch 更适合复杂条件搜索?
文章目录 ElasticSearch 简介倒排索引联合索引查询跳表合并策略Bitset 合并策略MySQL 最多使用一个条件涉及的索引来过滤,然后剩余的条件只能在遍历行过程中进行内存过滤。 上述这种处理复杂条件查询的方式因为只能通过一个索引进行过滤,所以需要进行大量的 I/O 操作来读取行…...
![](https://img-blog.csdnimg.cn/c3eb759563fe4e9e9eb550ea8f5bf1ec.png)
【数据结构】哈希表
目录 1、哈希表 1.1 哈希表的简介 1.2 降低哈希冲突率 1.3 解决哈希冲突 1.3.1 闭散列 1.3.2 开散列(哈希桶) 1、哈希表 1.1 哈希表的简介 假设我们目前有一组数据,我们要从这组数据中找到指定的 key 值,那么咱们目…...
![](https://www.ngui.cc/images/no-images.jpg)
物联网常用协议MQTT协议相关介绍
概述 MQTT(Message Queuing Telemetry Transport)是一种轻量级的消息传输协议,旨在在网络带宽有限的情况下,为物联网设备之间的通信提供可靠的、低延迟的消息传递服务。MQTT协议具有订阅/发布模式,支持多种传输协议&a…...
![](https://img-blog.csdnimg.cn/35ecf198531945f286ea4ff5bf7d61a6.jpeg#pic_center)
【C语言进阶】13. 假期测评②
day10 1. int类型字节数 求函数返回值,传入 -1 ,则在64位机器上函数返回( ) int count 0; int x -1; while (x) {count;x x >> 1; } printf("%d", count);A: 1 B: 2 C: 32 D: 死循环,没结果 【答案解析】C xx&(x-1)这…...
![](https://img-blog.csdnimg.cn/img_convert/7c87ac603060844c7ce3b75de2b96b6b.png)
【国产FPGA】国产FPGA搭建图像处理平台
最近收到了高云寄过来的FPGA板卡,下图:来源:https://wiki.sipeed.com/hardware/zh/tang/tang-primer-20k/primer-20k.htmlFPGA主要参数:FPGA型号参数GW2A-LV18PG256C8/I7逻辑单元(LUT4) 20736寄存器(FF) 15552分布式静态随机存储器S-SRAM(bit…...
![](https://img-blog.csdnimg.cn/0f0c332b2cd74f26951c81d61c1b4178.png)
你的应用太慢了,给我司带来了巨额损失,该怎么办
记得很久之前看过谷歌官方有这么样的声明:如果一个页面的加载时间从 1 秒增加到3 秒,那么用户跳出的概率将增加 32%。 但是早在 2012 年,亚马逊就计算出了,页面加载速度一旦下降一秒钟,每年就会损失 16 亿美元的销售额…...
![](https://img-blog.csdnimg.cn/38c4f0da6fb24917b3ddf471f737b6fe.png)
第十四届蓝桥杯三月真题刷题训练——第 22 天
目录 第 1 题:受伤的皇后_dfs 题目描述 输入描述 输出描述 输入输出样例 运行限制 代码: 思路: 第 2 题:完全平方数 问题描述 输入格式 输出格式 样例输入 1 样例输出 1 样例输入 2 样例输出 2 评测用例规模与约…...
![](https://img-blog.csdnimg.cn/61687de608d14c6a86ceb44f9d4a5267.png)
机器学习:朴素贝叶斯模型算法原理(含实战案例)
机器学习:朴素贝叶斯模型算法原理 作者:i阿极 作者简介:Python领域新星作者、多项比赛获奖者:博主个人首页 😊😊😊如果觉得文章不错或能帮助到你学习,可以点赞👍收藏&…...
![](https://img-blog.csdnimg.cn/2308796d12a443db92648b553295f9ee.jpeg#pic_center)
Linux 多线程:理解线程
目录一、理解线程的思想二、Linux中的线程与进程1.Linux中的进程2.Linux中的线程三、线程的工作方式四、线程的独有数据与共享数据1.独有数据2.共享数据一、理解线程的思想 线程就是把一个进程分成多个执行部分,一个部分就是一个线程,比如可以让一个线程…...
![](https://img-blog.csdnimg.cn/7bac8ab8cbdf45aa8abd100b0c4f1109.png)
Web前端学习:章四 -- JavaScript初级(四)-- BOM
138:Object数据格式简介 1、object对象 JS中独有 的一种数据格式 名字可以随便取,值一般就那几种数据格式 139:BOM - JS跳转页面 BOM Browser Object Model:浏览器对象模型 使用JavaScript控制浏览器交互 控制浏览器里面的内…...
![](/images/no-images.jpg)
wordpress增加标签/百度移动排名优化软件
佳能lbp2900打印机驱动是佳能LBP-2900黑白激光打印机的官方最新驱动程序。佳能lbp2900打印机驱动Win2000/XP/Win7操作系统的安装。这款驱动是佳能LBP-2900黑白激光打印机必备的驱动程序,如果没有安装该驱动你就无法正常使用打印机也无法被电脑识别该设备。推荐有需要…...
![](http://www.genwoxue.org/no2/asp_net/image/asp-net_34_01-001.jpg)
网站建设报价套餐/外链屏蔽逐步解除
【知识要点】 (1)初识GridView (2)为GridView加个样式 (3)让GridView自定义表头 【问题提出】 如何把客户以下面列表的形式展示出来呢? 【…...
![](/images/no-images.jpg)
移动电商网站开发需求文档/如何创造一个自己的网站
作者:Larry链接:https://zhuanlan.zhihu.com/p/22536382...
![](/images/no-images.jpg)
手机网站制作案例/5118站长工具
由于原有的方法无法处理两个日期在不同月份的情况,现更新LaTaio的方法如下:// 摘要: // 获取此实例所表示的日期为该月中的第几天。 // // 返回结果: // 日组成部分,表示为 1 和 31 之间的一个值。 public int Day { get; } 这个方法可能更直…...
![](/images/no-images.jpg)
杭州专业网站设计制作/广告推广语
性能优化方案--之一方案计划 Oracle优化 Oracle是咱们存储软件,他自身的优化是决定咱们系统软件性能的根本。 相关需要优化的配置: PGA:适当大小,保证SQL高速缓存命中能在99%以上。 SGA:调整适当增加共享内存池大小&am…...
![](/images/no-images.jpg)
网页设计教程下载/金昌网站seo
1. 重复的HTTP请求数量应尽量减少 (1)减少调用其他页面、文件的数量。 (2)精灵图 2. 文件资源优化**1**压缩Javascript、CSS代码文件压缩 **2**CDN托管 **3** 缓存使用 **4**文件合并 3. 在文件头部放置css样式的定义 这项设置…...