摘要: 容器的/apps/pero/src/resources/文件夹下有多个文件,如果挂载一个文件进去,会把其他文件都覆盖掉,只剩挂载的文件 按如下修改即可 volumeMounts: - name: pero-config mountPath: /apps/pero/src/resources/appl 阅读全文
posted @ 2024-02-23 18:43 wdgde 阅读(358) 评论(0) 推荐(0)
摘要: 1.目录结构 新建三个目录:bin,META-INF,src src目录下存放源码 META-INF目录下存放MANIFEST.MF bin目录下存放.class文件 2.编译源码 javac -d bin src/DESUtil.java 3.在META-INF目录下新建MANIFEST.MF文件 阅读全文
posted @ 2024-02-20 12:15 wdgde 阅读(144) 评论(0) 推荐(0)
摘要: 待补充验证 1.github地址 https://github.com/dbhi/qus 2.执行下面的命令 docker run --rm --privileged aptman/qus -s -- -p x86_64 参考链接: https://zhuanlan.zhihu.com/p/6036 阅读全文
posted @ 2024-02-04 17:16 wdgde 阅读(300) 评论(0) 推荐(0)
摘要: 1.gitte地址 https://gitee.com/kekingcn/file-online-preview?_from=gitee_search 2.基础镜像打包 FROM ubuntu:20.04 MAINTAINER chenjh "842761733@qq.com" # 内置一些常用的中 阅读全文
posted @ 2024-02-04 12:49 wdgde 阅读(416) 评论(0) 推荐(0)
摘要: 1.在linux环境下(docker镜像里面)使用如下命令编译打包时报错 mvn clean package -Dmaven.test.skip=true [INFO] Scanning for projects... [INFO] [INFO] < xxx.xxx:pero-xdd > [INFO 阅读全文
posted @ 2023-11-17 19:08 wdgde 阅读(1120) 评论(0) 推荐(0)
摘要: 一、问题1 1.k8s集群拉起的kafka集群可以正常启动,使用命令发送消息,消费消息都正常 /opt/kafka/bin/kafka-console-producer.sh --topic pero-test --bootstrap-server localhost:9092 /opt/kafka 阅读全文
posted @ 2023-10-17 15:37 wdgde 阅读(42) 评论(0) 推荐(0)
摘要: 以下方法alertmanager,prometheus,node-exporter都适用 1.加密密码 yum install -y httpd-tools #生成加密密码 htpasswd -nBC 12 '' | tr -d ':\n' New password: # 这里输入密码 Re-typ 阅读全文
posted @ 2023-09-08 20:39 wdgde 阅读(1097) 评论(0) 推荐(0)
摘要: 1.原代码 public void execCommand(String command){ List<String> inputStreamList=new LinkedList<>(); List<String> errorStreamList=new LinkedList<>(); try { 阅读全文
posted @ 2023-08-31 10:01 wdgde 阅读(1095) 评论(0) 推荐(0)
摘要: 1.github https://github.com/digitalocean/ceph_exporter 2.dockerfile FROM golang:1.17ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct"COPY ceph_ 阅读全文
posted @ 2023-08-17 17:28 wdgde 阅读(110) 评论(0) 推荐(0)
摘要: 1.引入依赖 <dependency> <groupId>io.kubernetes</groupId> <artifactId>client-java</artifactId> <version>15.0.1</version> </dependency> 2.代码实现 @Service publ 阅读全文
posted @ 2023-07-19 18:34 wdgde 阅读(1721) 评论(0) 推荐(0)