1、先安装ab工具



yum -y install httpd-tools


2、先把json内容保存到文件中



# cat post.txt 
{
"requestKey": A1C809421D62ABB4DE6DD33724BE19",
"tranCode": "QM0001",
"clientVersion": "8.3.0_beta","token": "ce97aaeef3adedc4462c198c59dc0800",
"deviceId": "868403029004253",
"userCode": "f7b29daf-7c34-4f27-ab1e-ab2dc3664199"
}


3、执行ab语句



ab -n 500000 -c 800 -p 'post.txt' -T 'Content-type: application/json' 'http://IP/app/services/json/v2/Inf.json'