linux自动化shell压力测试脚本,应用shell脚本和批处理脚本编程实现自动化测试

#!/bin/sh

cd /home/lzh/mntpre

for ((loop=1; loop<=20; loop++));                                              /** 循环**/

do                                                                             /** do和done直接是循环执行的内容**/

cp DMS-Agent-linux-5.0_2.0.01 DMS-Agent-linux-5.0_2.0.01-$loop                 /** 文件夹及内容递归复制**/

cd ./DMS-Agent-linux-5.0_2.0.01-$loop/conf

sed “/s/5555/6001/g” configuration.xml > configuration1.xml                    /**修改配置文件中的端口 **/

sed “/s/\/home/lzh\/GBase8d5-1/\/home/lzh\/monitor\/GBase8d5-1/g” configuration1.xml > configuration.xml

/** 修改配置文件中的路径**/

echo installed agent$loop!                                                     /**显示提示信息 **/

Done                                                                           /** 循环结束**/

Echo finished  $loop agent installation!                                       /** 显示提示信息**/

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页