摘要:# 安装s5cmd apt install -y gdebi-core apt install -y wget wget https://github.com/peak/s5cmd/releases/download/v2.2.1/s5cmd_2.2.1_linux_amd64.deb echo y
阅读全文
摘要:nslookup和dig默认都会输出所有解析地址,包括ipv4和ipv6。dig -4和-6表示分别只用ipv4和ipv6来解析地址,nslookup不支持。 root@root1:~# nslookup -debug www.baidu.com Server: 127.0.0.53 Address
阅读全文
摘要:https://tool.chinaz.com/dns/github.com搜索github.com,选择TTL最小的站点,增加到/etc/hosts中。 原来 现在
阅读全文
摘要:socat -d -d TCP-LISTEN:8080,fork,bind=0.0.0.0 UNIX:/var/run/docker.sock
阅读全文
摘要:fatrace无法查看到执行磁盘IO进程的父进程。 apt install -y fatrace fatrace -c -t
阅读全文
摘要:用途1:构建docker镜像 mkdir makefile cd makefile # Dockerfile FROM golang:1.19-alpine AS builder # Makefile build: docker build -t $(tag) . make build tag=a
阅读全文
摘要:# 下载并解压,配置环境变量 https://github.com/protocolbuffers/protobuf/releases/download/v31.0/protoc-31.0-win64.zip # 确认生效 protoc --version go install google.gol
阅读全文
摘要:go install github.com/google/gops@latest cp $GOPATH/bin/gops /usr/bin package main import ( "log" "time" "github.com/google/gops/agent" ) func main()
阅读全文
摘要:# mac安装multipass,multipass必须使用ubuntu镜像 brew install multipass # 启动ubuntu 23.10虚拟机 # u1和u2是虚拟机名字 multipass launch -n u1 -c 1 -m 2G -d 20G 23.10 multipa
阅读全文
摘要:功能 地址 不同版本Linux内核代码(支持跳转) https://elixir.bootlin.com/linux/v6.5/source 正则表达式验证 https://www.regexp.cn/Regex json展开 https://www.json.cn ip和主机字节序整数互转 htt
阅读全文
摘要:1. 显示运行按钮 扩展中搜索code runner并安装 2. 自动保存 file->preferences->settings->搜索auto save->延迟100ms保存 3. 保存时自动格式化 file->preferences->settings->搜索format on save->勾
阅读全文
摘要:问题现象1(vscode中cpptools-srv内存占用过多) vscode报错OOM。 问题分析 # top按照占用内存排序 top -o +%MEM cpptools-srv占用最高,达到890MB左右。 解决方法 打开vscode,文件->首选项->设置,搜索C_Cpp.intelliSen
阅读全文
摘要:kube-ovn # docker容器作为k8s node,容器里面通过containerd拉起Pod。 cat <<EOF | kind create cluster --name kube-ovn --config - kind: Cluster apiVersion: kind.x-k8s.i
阅读全文
摘要:# 重命名/usr/bin/chown二进制文件为real_chown mv /usr/bin/chown /usr/bin/real_chown # 编写脚本来调用real_chown vim /usr/bin/chown chown_log="/var/log/chown.log" date >
阅读全文
摘要:问题现象 节点CPU间隔一段时间后会冲高。通过execsnoop捕捉到在创建网桥(删除网桥捕捉不到,因为删除时不需要确认状态)。 # 安装execsnoop git clone --depth 1 https://github.com/brendangregg/perf-tools ./perf-t
阅读全文
摘要:iperf3 # 安装iperf3 apt install -y iperf3 # 服务端 iperf3 -s -p 5001 # 客户端 iperf3 -c 192.168.0.112 -p 5001 说明最大带宽是4.25Gb/s。
阅读全文
摘要:package main import ( "fmt" "time" ) func test() { fmt.Println("") } func main() { time.Sleep(1000 * time.Second) } go build -gcflags=all="-N -l" -o t
阅读全文
摘要:安装Ubuntu Server 23.10 下载Ubuntu https://ubuntu.com/download/server mirror address填写为 http://mirrors.aliyun.com/ubuntu/ 安装Nettrace 下载nettrace rpm包 https
阅读全文
摘要:MyBatisX Save Actions 热部署JRebel plugins里面搜索jrebel 激活jrebel 不要勾选 启用自动编译 不再显示指引 问题1:JRebel-JVMTI [FATAL] Couldn't write to C:\Users\win10把中文用户名改成英文
阅读全文
摘要:wget https://github.com/osrg/gobgp/releases/download/v3.20.0/gobgp_3.20.0_linux_amd64.tar.gz # c1和c2容器启动gobgpd守护进程 # c1 # gobgpd.conf [global.config]
阅读全文