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'

 

参考

ab测试curl测试 - 星回中道 - 博客园 https://www.cnblogs.com/xhzd/p/13047937.html

 

转载请注明出处!!!

相关文章:

  • 2021-06-20
  • 2021-12-28
  • 2022-12-23
  • 2021-12-04
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案