
Shell
shell 查看docker私有仓库镜像脚本
cat list.sh#!/bin/bashfile=$(mktemp)curl -s $1:5000/v2/_catalog | jq | egrep -v
监控服务器主要性能参数指标
#!/bin/bash#功能描述(Description):监控服务器主要性能参数指标.#监控项目:内核信息,主机名称,IP地址,登陆账户,内存与swap信息,磁盘信息,CPU负载.kernel=$(uname -r)
cat list.sh#!/bin/bashfile=$(mktemp)curl -s $1:5000/v2/_catalog | jq | egrep -v
#!/bin/bash#功能描述(Description):监控服务器主要性能参数指标.#监控项目:内核信息,主机名称,IP地址,登陆账户,内存与swap信息,磁盘信息,CPU负载.kernel=$(uname -r)
docker常用命令
以root用户运行cat /etc/passwd | cut -f 1 -d : |xargs -I {} crontab -l -u {}
apiVersion: v1kind: PersistentVolumemetadata:name: pv01spec:capacity:storage: 5G
curl -L https://github.com/ahmetb/kubectx/releases/download/v0.9.1/kubens -o /bi
awk '{ip[$1]+=1;} END {for(i in ip){print ip[i]" "i;}}' /var/log/httpd