摘要: 1.在使用powerjob的时候,启动项目有报netty相关ClassNotFoundException的问题 <dependency> <groupId>tech.powerjob</groupId> <artifactId>powerjob-client</artifactId> <versio 阅读全文
posted @ 2023-07-06 19:10 wdgde 阅读(420) 评论(0) 推荐(0)
摘要: 1.背景 springboot项目,引入nacos做配置中心,pom.yaml导入依赖 <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-config-spring-boot-starter</artifactId> 阅读全文
posted @ 2023-07-06 19:00 wdgde 阅读(1303) 评论(0) 推荐(0)
摘要: 1.场景 集群B有一个应用要向集群A的kafka集群发送消息,但是集群A和集群B不是直接互通的,需要经过一层转发。 2.问题 kafka集群的地址: 10.10.10.1:9092 10.10.10.2:9092 10.10.10.3:9092 经过一层转发,集群B可以访问的kafka地址为: 90 阅读全文
posted @ 2023-06-03 17:39 wdgde 阅读(274) 评论(0) 推荐(0)
摘要: 1.github https://github.com/c4po/harbor_exporter 2.dockerfile FROM golang:1.17 ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct" COPY harbor_ex 阅读全文
posted @ 2023-03-04 14:55 wdgde 阅读(114) 评论(0) 推荐(0)
摘要: 1.github https://github.com/prometheus/haproxy_exporter 2.hub.docker https://hub.docker.com/r/prom/haproxy-exporter 3.dockerfile FROM golang:1.17 ENV 阅读全文
posted @ 2023-01-04 20:01 wdgde 阅读(56) 评论(0) 推荐(0)
摘要: 1.github https://github.com/ofesseler/gluster_exporter 2.dockerfile FROM golang:1.17 ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct" COPY glu 阅读全文
posted @ 2023-01-04 19:58 wdgde 阅读(97) 评论(0) 推荐(0)
摘要: 1.github https://github.com/mehdy/keepalived-exporter 2.dockerfile FROM golang:1.17 ENV GO111MODULE=on \ GOPROXY="https://goproxy.cn,direct" COPY keep 阅读全文
posted @ 2023-01-04 19:55 wdgde 阅读(200) 评论(0) 推荐(0)
摘要: 1.sed命令替换文件中的多行内容 命令如下 sed -i ":label;N;s/old-str/new-str/;b label" xxxx.yaml sed -i ":label;N;s/ abc\n dsff\ndf/w\n f/;b label" xxxx.yaml 2.sed命令删除文件 阅读全文
posted @ 2022-12-23 14:52 wdgde 阅读(231) 评论(0) 推荐(0)
摘要: Natural Language Toolkit(NLTK),自然语言处理工具包 在使用ntlk时,报错如下 ********************************************************************** Resource punkt not found 阅读全文
posted @ 2022-10-25 10:56 wdgde 阅读(1564) 评论(0) 推荐(0)
摘要: 调用某个第三方服务时,返回的报文解析时报错 Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'fal 阅读全文
posted @ 2022-09-09 15:12 wdgde 阅读(6516) 评论(0) 推荐(0)