摘要: #!/bin/bash set -e #所需变量 #取得集群的所有主机名,这里需要注意:/etc/hosts配置的IP和主机名只能用一个空格分割 hostList=$(cat /etc/hosts | tail -n +2 | cut -d ' ' -f 2) pingCount=5 logPre= 阅读全文
posted @ 2020-07-01 16:13 鱼丸河粉 阅读(225) 评论(0) 推荐(0) 编辑