jenkins系列-09.jpom构建java docker harbor

本地先启动jpom server + agent:

/Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/bin
jelex@jelexxudeMacBook-Pro bin % sh Server.sh start

/Users/jelex/Documents/work/jpom-2.10.40/agent-2.10.40-release/bin
jelex@jelexxudeMacBook-Pro bin % ./Agent.sh start

jelex@jelexxudeMacBook-Pro bin % netstat -ant | grep 2123

jelex@jelexxudeMacBook-Pro bin % ps -ef | grep jpom

在这里插入图片描述
jwt-learn[https://gitee.com/jelex/jwt-learn.git]
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
本机mac m1:


本地docker配置:
{
  "registry-mirrors": [
    "https://dbie4irj.mirror.aliyuncs.com"
  ],
  "insecure-registries":["101.43.xxx.xx:3306"],
  "features": {
    "buildkit": true
  },
  "experimental": false,
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  }
}

在这里插入图片描述
如果不配置上述,会报错:

jelex@jelexxudeMacBook-Pro ~ % docker login -u admin 101.43.xxx.xx:3306
Password:
Error response from daemon: Get "https://101.43.xxx.xx:3306/v2/": http: server gave HTTP response to HTTPS client

本地登录:

jelex@jelexxudeMacBook-Pro ~ % docker login -u admin -p '密码密码密码' 101.43.xxx.xx:3306
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
jelex@jelexxudeMacBook-Pro ~ %

本地拉取镜像:

 docker pull 101.43.xxx.xx:3306/repo/jwtlearn:1.0

在这里插入图片描述
在这里插入图片描述
运行:

jelex@jelexxudeMacBook-Pro ~ % docker run -name jwtlearn p 8080:8080 -d 746fb939ac27

在这里插入图片描述

postman测试:
http://localhost:8080/jwt/api/v1/login?userName=zss&pwd=1
在这里插入图片描述
http://localhost:8080/jwt/api/v1/user
在这里插入图片描述

附录:完整构建日志:

[SYSTEM-INFO] 当前构建中任务数:0,队列中任务数:0 
[SYSTEM-INFO] 开始执行构建任务,任务等待时间:2毫秒
[SYSTEM-INFO] 开始执行 准备构建流程
[SYSTEM-INFO] 开始构建 #1 构建执行路径 : /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source
[SYSTEM-INFO] 执行结束 准备构建流程,耗时:2毫秒
[SYSTEM-INFO] 开始执行 拉取仓库代码流程
[SYSTEM-INFO] repository [master] clone pull from master
Automatically re-clones repositories

remote: Enumerating objects: 68
remote: Enumerating objects: 68

remote: Counting objects:   4% ( 1/25)
remote: Counting objects:   8% ( 2/25)
remote: Counting objects:  12% ( 3/25)
remote: Counting objects:  16% ( 4/25)
remote: Counting objects:  20% ( 5/25)
remote: Counting objects:  28% ( 7/25)
remote: Counting objects:  32% ( 8/25)
remote: Counting objects:  36% ( 9/25)
remote: Counting objects:  40% (10/25)
remote: Counting objects:  48% (12/25)
remote: Counting objects:  52% (13/25)
remote: Counting objects:  56% (14/25)
remote: Counting objects:  60% (15/25)
remote: Counting objects:  68% (17/25)
remote: Counting objects:  72% (18/25)
remote: Counting objects:  76% (19/25)
remote: Counting objects:  80% (20/25)
remote: Counting objects:  88% (22/25)
remote: Counting objects:  92% (23/25)
remote: Counting objects:  96% (24/25)
remote: Counting objects: 100% (25/25)
remote: Counting objects: 100% (25/25)

remote: Compressing objects: 100% (19/19)

Receiving objects:      100% (68/68)

Resolving deltas:       100% (4/4)

Updating references:    100% (1/1)

Checking out files:     100% (20/20)

Pull:                    50% (1/2)
Pull:                   100% (2/2)
Pull:                   100% (2/2)
mergeResult Merge of revisions ad03c46672ee98be86717aef465c43080e7127a1, ad03c46672ee98be86717aef465c43080e7127a1 with base ad03c46672ee98be86717aef465c43080e7127a1 using strategy recursive resulted in: Already-up-to-date. 
fetchedFrom origin

[SYSTEM-INFO] master 调整docker位置 jelex[1170366657@qq.com] 2023-06-13 15:36:24 1
[SYSTEM-INFO] ##################################################################################
[SYSTEM-INFO] BUILD_ID=f9bc3e55537f40038dc80e07af054058
[SYSTEM-INFO] BUILD_NAME=docker-harbor
[SYSTEM-INFO] BUILD_SOURCE_FILE=/Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source
[SYSTEM-INFO] BUILD_NUMBER_ID=1
[SYSTEM-INFO] BUILD_CONFIG_BRANCH_NAME=master
[SYSTEM-INFO] BUILD_BRANCH_NAME=master
[SYSTEM-INFO] BUILD_COMMIT_ID=ad03c46672ee98be86717aef465c43080e7127a1
[SYSTEM-INFO] ##################################################################################
[SYSTEM-INFO] 执行结束 拉取仓库代码流程,耗时:2秒523毫秒
[SYSTEM-INFO] 开始执行 执行构建命令流程
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.jel.tech:jwt-demo >------------------------
[INFO] Building jwt-demo 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.1.0:clean (default-clean) @ jwt-demo ---
[INFO] 
[INFO] --- resources:3.1.0:resources (default-resources) @ jwt-demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO] 
[INFO] --- compiler:3.8.1:compile (default-compile) @ jwt-demo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/target/classes
[INFO] /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/main/java/com/jel/tech/jwt/vo/Result.java: /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/main/java/com/jel/tech/jwt/vo/Result.java使用了未经检查或不安全的操作。
[INFO] /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/main/java/com/jel/tech/jwt/vo/Result.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[INFO] 
[INFO] --- resources:3.1.0:testResources (default-testResources) @ jwt-demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/test/resources
[INFO] 
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ jwt-demo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/target/test-classes
[INFO] /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/test/java/com/jel/tech/jwt/CommonTest.java: /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/test/java/com/jel/tech/jwt/CommonTest.java使用或覆盖了已过时的 API。
[INFO] /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/src/test/java/com/jel/tech/jwt/CommonTest.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[INFO] 
[INFO] --- surefire:2.22.2:test (default-test) @ jwt-demo ---
[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
[INFO] Tests are skipped.
[INFO] 
[INFO] --- jar:3.1.2:jar (default-jar) @ jwt-demo ---
[INFO] Building jar: /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/data/build/f9bc3e55537f40038dc80e07af054058/source/target/jwt-learn.jar
[INFO] 
[INFO] --- spring-boot:2.2.5.RELEASE:repackage (repackage) @ jwt-demo ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.555 s
[INFO] Finished at: 2024-02-08T21:48:08+08:00
[INFO] ------------------------------------------------------------------------
[SYSTEM-INFO] 执行脚本的退出码是:0
[SYSTEM-INFO] 执行结束 执行构建命令流程,耗时:3秒688毫秒
[SYSTEM-INFO] 开始执行 打包产物流程
[SYSTEM-INFO] 执行结束 打包产物流程,耗时:32毫秒
[SYSTEM-INFO] 开始执行 发布产物流程
[SYSTEM-INFO] 开始执行发布,需要发布的文件大小:18.94 MB
[SYSTEM-INFO] 发布的方式:SSH
[SYSTEM-INFO] 2024-02-08 21:48:09 师兄tencent start ftp upload
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/test-classes/com/jel/tech/jwt/CommonTest.class 4.36 KB/4.36 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/test-classes/com/jel/tech/jwt/JwtDemoApplicationTests.class 540 B/540 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/test-classes/com/jel/tech/jwt/User.class 2.76 KB/2.76 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/docker/Dockerfile 91 B/91 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/docker/docker-compose.yml 179 B/179 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/META-INF/spring-configuration-metadata.json 915 B/915 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/application.yml 197 B/197 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/vo/Result.class 5.2 KB/5.2 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/vo/UserVO.class 2.12 KB/2.12 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/util/TokenUtils.class 3.58 KB/3.58 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/web/JwtController.class 2.32 KB/2.32 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/conf/WebConfig.class 1.22 KB/1.22 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/conf/JwtHandler.class 920 B/920 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/conf/JwtConfig.class 2.75 KB/2.75 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/interceptor/TokenInterceptor.class 4.3 KB/4.3 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/classes/com/jel/tech/jwt/JwtDemoApplication.class 742 B/742 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 31.83 KB/18.89 MB 0% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 986.82 KB/18.89 MB 5% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 1.9 MB/18.89 MB 10% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 2.86 MB/18.89 MB 15% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 3.79 MB/18.89 MB 20% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 4.73 MB/18.89 MB 25% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 5.69 MB/18.89 MB 30% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 6.62 MB/18.89 MB 35% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 7.59 MB/18.89 MB 40% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 8.52 MB/18.89 MB 45% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 9.45 MB/18.89 MB 50% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 10.41 MB/18.89 MB 55% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 11.35 MB/18.89 MB 60% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 12.28 MB/18.89 MB 65% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 13.24 MB/18.89 MB 70% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 14.18 MB/18.89 MB 75% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 15.14 MB/18.89 MB 80% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 16.07 MB/18.89 MB 85% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 17 MB/18.89 MB 90% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 17.97 MB/18.89 MB 95% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar 18.89 MB/18.89 MB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst 493 B/493 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst 109 B/109 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst 1.47 KB/1.47 KB 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst 399 B/399 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/maven-archiver/pom.properties 64 B/64 B 100% 
[SYSTEM-INFO] 上传文件进度:/root/jwt-learn/jwt-learn.jar.original 16.05 KB/16.05 KB 100% 
[SYSTEM-INFO] 师兄tencent ftp upload done
[SYSTEM-INFO] 开始执行 师兄tencent 发布后命令
Login Succeeded
The push refers to repository [101.43.141.9:3306/repo/jwtlearn]
5f70bf18a086: Preparing
901ead7f46a4: Preparing
6b5aaff44254: Preparing
53a0b163e995: Preparing
b626401ef603: Preparing
9b55156abf26: Preparing
293d5db30c9f: Preparing
03127cdb479b: Preparing
9c742cd6c7a5: Preparing
9b55156abf26: Waiting
293d5db30c9f: Waiting
03127cdb479b: Waiting
9c742cd6c7a5: Waiting
5f70bf18a086: Pushed
53a0b163e995: Pushed
901ead7f46a4: Pushed
b626401ef603: Pushed
293d5db30c9f: Pushed
03127cdb479b: Pushed
6b5aaff44254: Pushed
9c742cd6c7a5: Pushed
9b55156abf26: Pushed
1.0: digest: sha256:6e353e45906dde3f29a4b5cd6b13ea19be409d831001d492f1dd0cccebf73df2 size: 2213
Total reclaimed space: 0B
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 128B done
#1 DONE 0.2s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.2s

#3 [internal] load metadata for docker.io/library/openjdk:8
#3 DONE 0.9s

#4 [1/3] FROM docker.io/library/openjdk:8@sha256:86e863cc57215cfb181bd319736d0baf625fe8f150577f9eb58bd937f5452cb8
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 19.81MB 0.2s done
#5 DONE 0.2s

#4 [1/3] FROM docker.io/library/openjdk:8@sha256:86e863cc57215cfb181bd319736d0baf625fe8f150577f9eb58bd937f5452cb8
#4 CACHED

#6 [2/3] COPY jwt-learn.jar /usr/local
#6 DONE 0.2s

#7 [3/3] WORKDIR /usr/local
#7 DONE 0.1s

#8 exporting to image
#8 exporting layers
#8 exporting layers 0.2s done
#8 writing image sha256:746fb939ac27d1387be86879cd242192d5c79adcfa1dd833b9e5ab18a1a82076 done
#8 naming to docker.io/library/jwtlearn:1.0 done
#8 DONE 0.2s
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store


[SYSTEM-INFO] 执行结束 发布产物流程,耗时:5分8秒58毫秒
[SYSTEM-INFO] 开始执行 构建结束流程
[SYSTEM-INFO] 执行结束 构建结束流程,耗时:4毫秒
[SYSTEM-INFO] 构建结束 累计耗时:5分14秒331毫秒

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

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

相关文章

OpenCV图像处理——判断轮廓是否在圆环内

要判断一个轮廓是否在圆环内&#xff0c;可以将问题分解为两个步骤&#xff1a; 确保轮廓的所有点都在外圆内。确保轮廓的所有点都在内圆外。 下面是一个完整的示例代码&#xff0c;展示如何实现这一点&#xff1a; #include <opencv2/opencv.hpp> #include <iostr…

pytorch-LSTM

目录 1. RNN存在的问题2. LSTM的由来3. LSTM门3.1 遗忘门3.2 输入门3.3 输出门 4. LSTM是如何减轻梯度弥散问题 1. RNN存在的问题 如下图&#xff1a;RNN能满足预测下一个单词&#xff0c;但是对于获取更多的上下文信息就做不到了。 2. LSTM的由来 RNN能做到短时记忆即shor…

开发业务(2)——wordpress使用基础教程

外贸领域里面wordpress是比较通用的框架。由于多年的发展&#xff0c;性能和插件非常强大&#xff0c;包括支持各种企业站&#xff08;很多人已经设计了各种风格&#xff0c;只需要你将对应主题风格安装即可&#xff0c;当然也有付费的&#xff09;。这导致其内部生态非常强大&…

2024年上半年信息系统项目管理师——综合知识真题题目及答案(第1批次)(4)

2024年上半年信息系统项目管理师 ——综合知识真题题目及答案&#xff08;第1批次&#xff09;&#xff08;4&#xff09; 第61题&#xff1a;The project manager should use &#xff08;tool for the purpose to report on the work remaining for projects. A. cumulativ…

<数据集>夜间车辆识别数据集<目标检测>

数据集格式&#xff1a;VOCYOLO格式 图片数量&#xff1a;5000张 标注数量(xml文件个数)&#xff1a;5000 标注数量(txt文件个数)&#xff1a;5000 标注类别数&#xff1a;8 标注类别名称&#xff1a;[car, pedestrian, traffic light, traffic sign, bicycle, bus, truck…

编写商品列表和商品编辑和商品新增页面

addvue <template><!-- 传过来的id --> <!-- {{ $route.query.id }} --> <el-formref"FormRef"style"max-width: 600px":model"FormData":rule"rules"status-iconlabel-width"auto"class"demo-r…

手机数据恢复篇:如何从 Android 手机恢复消失的照片

丢失 Android 手机中的照片现在已成为您可能遇到的最糟糕的情况之一。随着手机在相机方面越来越好&#xff0c;即使是那些不热衷于拍照的人也成为了摄影师。 如今&#xff0c;人们可以随时随地拍摄照片&#xff0c;每一张照片都保存着回忆和数据&#xff0c;因此&#xff0c;丢…

Gitea 仓库事件触发Jenkins远程构建

文章目录 引言I Gitea 仓库事件触发Jenkins远程构建1.1 Jenkins配置1.2 Gitea 配置引言 应用场景:项目部署 I Gitea 仓库事件触发Jenkins远程构建 Gitea支持用于仓库事件的Webhooks 1.1 Jenkins配置 高版本Jenkins需要关闭跨域限制和开启匿名用户访问 在Jenkins启动前加入…

[MySQL][表操作]详细讲解

目录 1.创建表1.基本语法2.创建表案例 2.查看表结构3.修改表1.语法2.示例3.modify和change区别 4.删除表 1.创建表 1.基本语法 语法&#xff1a; CREATE TABLE table_name (field1 datatype,field2 datatype,field3 datatype ) character set 字符集 collate 校验规则 engin…

达梦数据库的系统视图v$sessions

达梦数据库的系统视图v$sessions 达梦数据库&#xff08;DM Database&#xff09;是中国的一款国产数据库管理系统&#xff0c;它提供了类似于Oracle的系统视图来监控和管理数据库。V$SESSIONS 是达梦数据库中的一个系统视图&#xff0c;用于显示当前数据库会话的信息。 以下…

分页以及tab栏切换,动态传类型

<view class"disTitle"><view class"disName">账户明细</view><view class"nav"><u-tabs lineWidth"0" :activeStyle"{color: #FD893F }" :list"navList" change"tabsChange&quo…

企业网络实验(vmware虚拟机充当DHCP服务器)所有IP全部保留,只为已知mac分配固定IP

文章目录 需求实验修改dhcp虚拟机配置文件测试PC获取IP查看user-bind 需求 (vmware虚拟机充当DHCP服务器)所有IP全部保留&#xff0c;只为已知mac分配固定IP 实验 前期配置&#xff1a; https://blog.csdn.net/xzzteach/article/details/140406092 后续配置均在以上配置的前…

LLM推理优化笔记1:KV cache、Grouped-query attention等

KV cache 对于decoder-only 模型比如现在如火如荼的大模型&#xff0c;其在生成内容的过程中&#xff0c;为了避免冗余计算&#xff0c;会将Transformer里的self-attention的K和V矩阵给缓存起来&#xff0c;这个过程即为KV cache。 decoder-only模型的生成过程是自回归的&…

单元测试实施最佳方案(背景、实施、覆盖率统计)

1. 什么是单元测试&#xff1f; 对于很多开发人员来说&#xff0c;单元测试一定不陌生 单元测试是白盒测试的一种形式&#xff0c;它的目标是测试软件的最小单元——函数、方法或类。单元测试的主要目的是验证代码的正确性&#xff0c;以确保每个单元按照预期执行。单元测试通…

Android C++系列:Linux网络(三)协议格式

1. 数据包封装 传输层及其以下的机制由内核提供,应用层由用户进程提供(后面将介绍如何使用 socket API编写应用程序),应用程序对通讯数据的含义进行解释,而传输层及其以下 处理通讯的细节,将数据从一台计算机通过一定的路径发送到另一台计算机。应用层 数据通过协议栈发到…

搜索引擎中的相关性模型

一、什么是相关性模型&#xff1f; 相关性模型主要关注的是query和doc的相关性。例如给定query&#xff0c;和1000个doc&#xff0c;找到哪个doc是好query最相关的。 二、为什么需要相关性模型&#xff1f; 熟悉es的应该都熟悉BM25相关性算法。它是一个很简单的相关性算法。我…

nginx的四层负载均衡实战

目录 1 环境准备 1.1 mysql 部署 1.2 nginx 部署 1.3 关闭防火墙和selinux 2 nginx配置 2.1 修改nginx主配置文件 2.2 创建stream配置文件 2.3 重启nginx 3 测试四层代理是否轮循成功 3.1 远程链接通过代理服务器访问 3.2 动图演示 4 四层反向代理算法介绍 4.1 轮询&#xff0…

安全防御,防火墙配置NAT转换智能选举综合实验

一、实验拓扑图 二、实验需求 1、办公区设备可以通过电信链路和移动链路上网(多对多的NAT&#xff0c;并且需要保留一个公网IP不能用来转换) 2、分公司设备可以通过总公司的移动链路和电信链路访问到Dmz区的http服务器 3、多出口环境基于带宽比例进行选路&#xff0c;但是&…

python:使用matplotlib库绘制图像(四)

作者是跟着http://t.csdnimg.cn/4fVW0学习的&#xff0c;matplotlib系列文章是http://t.csdnimg.cn/4fVW0的自己学习过程中整理的详细说明版本&#xff0c;对小白更友好哦&#xff01; 四、条形图 1. 一个数据样本的条形图 条形图&#xff1a;常用于比较不同类别的数量或值&…

STM32之六:SysTick系统滴答定时器

目录 1. SysTick简介 2. 时钟来源 3. SysTick寄存器 3.1 CTRL—SysTick控制及状态寄存器 3.2 RELOAD—SysTick重装载数值寄存器 3.3 CURRENT—SysTick当前数值寄存器 4. systick系统定时器配置 5. 延时函数实现 5.1 延时函数编写步骤 5.2 微秒级延时函数delay_us 5.…