kubernetes 命令补全
yum install bash-completion -y #apt install -y bas… 继续阅读 kubernetes 命令补全
yum install bash-completion -y #apt install -y bas… 继续阅读 kubernetes 命令补全
etcd file: root@arm:~# tree /var/lib/etcd /var/lib… 继续阅读 kubernetes etcd操作
#yum install -y etcd-client apt install -y etcd-cl… 继续阅读 Command ‘etcdctl’ not found
error: root@arm:~# dmesg | tail [1868091.585379] s… 继续阅读 svc: svc_tcp_read_marker nfsd RPC fragment too large
/etc/init.d/nfs-kernel-server restart
https://www.gcping.com/
#!/bin/bash #保留最新的文件个数 num=3 filenumb=$(ls -ltr /d… 继续阅读 ls删除文件 保留最新的文件个数
error: Caused by: java.lang.UnsatisfiedLinkError: … 继续阅读 Caused by: java.lang.UnsatisfiedLinkError: /root/.javacpp/cache/ffmpeg-5.0-1.5.7-linux-x86_64.jar/org/bytedeco/ffmpeg/linux-x86_64/libjniavdevice.so: libasound.so.2: cannot open shared object
htop dmesg | tail vmstat 1 mpstat -P ALL 1 pidstat… 继续阅读 get linux status via 9 cmds
#apt install -y sysstat yum install -y sysstat
列 说明 USER 进程所属用户 PID 进程ID %CPU 进程占用CPU百分比 %MEM 进程占… 继续阅读 ps aux 列说明
func TestStrings(t *testing.T) { s1 := "hello… 继续阅读 golang strings package usage
kubectl -n kube-system describe secret $(kubectl -… 继续阅读 get token from kubernetes secret
doc: https://docs.docker.com/config/daemon/prometh… 继续阅读 Collect Docker metrics with Prometheus
location /img/ { alias /var/www/image/; } 若按照上述配置的… 继续阅读 nginx root alias
node-exporter: docker run -d -p 59100:9100 \ -v &q… 继续阅读 docker run node-exporter cadvisor
run: docker run -d \ -p 5000:5000 \ -v /data/regis… 继续阅读 use private docker registry
run: docker run -d –name redis_exporter -p 9121:9… 继续阅读 docker run redis exporter
git init # 初始化本地git仓库(创建新仓库) git config –global u… 继续阅读 git常用命令
namespaced api-resources root@arm:~#kubectl api-re… 继续阅读 kubernetes namespaced and global api-resources