
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
packagepackage sshplusimport ("fmt""golang.org/x/crypto/ssh""io/ioutil")func NewConfig(keyFile, user string) (config *ssh.ClientConfig, err error) {key, err := ioutil.ReadFile(keyFile)if err != nil {e
直接添加repo报错如下# helm repo add minio https://helm.min.io/Error: looks like "https://helm.min.io/" is not a valid chart repository or cannot be reached: Get "https://helm.min.io/index.yaml": x509: certifi
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gatewaygo get -u github.com/golang/protobuf/protoc-gen-gogo get -u github.com/gogo/protobuf/gogoprotoproto文件syntax = "proto3";package a
1. monStart采集监控指标,从该函数开始func main() {...if config.Config.Enable.Mon {monStart()}...}func monStart() {...//采集系统指标funcs.BuildMappers()funcs.Collect()...}2. 添加自定义指标type FuncsAndInterval struct {Fs[]fun
网上通用解法:保存镜像时:docker save -o [image].tar// 重点是加上-o选项load镜像时:docker load -i [image].tarhttps://programmerah.com/docker-load-error-processing-tar-fileexit-status-1-archive-tar-invalid-tar-header-23841/本次
将old-releases.ubuntu.com替换成国内的地址,因为2210国内源没找到,没有了,但是现在更新到24.04,国内是有的。如果执行apt dist-upgrade报错,那就直接reboot,重启之后再执行。将所有kinetic换成noble,noble是24.04源,sed或手动改。

1. monStart采集监控指标,从该函数开始func main() {...if config.Config.Enable.Mon {monStart()}...}func monStart() {...//采集系统指标funcs.BuildMappers()funcs.Collect()...}2. 添加自定义指标type FuncsAndInterval struct {Fs[]fun
下载opa文档地址https://www.openpolicyagent.org/docs/latest/#1-download-opacurl -L -o opa https://openpolicyagent.org/downloads/v0.33.1/opa_linux_amd64_staticchmod a+x opamv opa /usr/local/bin非交互式运行package r
1. reportStart()函数上报本机信息给ams,从该函数开始func main() {...if config.Config.Enable.Report {reportStart()}...2. 定时循环上报func reportStart() {go report.LoopReport()}func LoopReport() {duration := time.Duration(con







