shell脚本

shell脚本1:

while true
do
 for i in {1..13}
      do
       ssh cbp$i.chinaoly.com "swapoff -a;"
       sleep 300
      done
done

shell脚本2:

for i in {1..13}
do
   ssh cbp$i.chinaoly.com "hostname"
   ssh cbp$i.chinaoly.com "echo 1 > /proc/sys/vm/drop_caches "
   ssh cbp$i.chinaoly.com "swapoff -a;swapon -a "
#   ssh chinaoly$i.com "free -g"
done

 

posted @ 2021-02-08 13:20  Simon92  阅读(9)  评论(0编辑  收藏  举报