startGor.sh 394 Bytes
#!/bin/bash

if [[ ! $1 ]];then
  echo "未输入日志全路径"
  exit 1
fi
if [[ ! $2 ]];then
  echo "未输入回放倍数"
  exit 1
fi
if [[ ! $3 ]];then
  echo "未输入回放域名"
  exit 1
fi

basepath=$(cd `dirname $0`; pwd)
LOG_PATH=/Data/logs/jmeter/gor.log

${basepath}/gor --stats --output-http-stats --input-file-loop --input-file "$1|$2" --output-http "$3" 1>$LOG_PATH 2>&1 &