
路边只狗的博客
批量删除镜像或备份
#!/bin/bashfile=$(mktemp)docker images | grep -v REPOSITORY | awk '{print $1":"$2}' >> $filewhile read line;dodocker rmi $linedone <
监控服务器主要性能参数指标
#!/bin/bash#功能描述(Description):监控服务器主要性能参数指标.#监控项目:内核信息,主机名称,IP地址,登陆账户,内存与swap信息,磁盘信息,CPU负载.kernel=$(uname -r)
一键生成KVM虚拟机
#!/bin/bashexport LANG=C. /etc/init.d/functionsCONF_DIR=/etc/libvirt/qemuIMG_DIR=/var/lib/libvirt/imagesfunction create_vm(){if [ -e $/${1}.img ];the