服务器压测步骤
1,ubuntu服务器添加公钥
echo "公钥内容" >> ~/.ssh/authorized_keys
2,本地连接服务器
ssh -i id_rsa ubuntu@3.90.215.173
3,在本地终端上传jmx文件(如:NFT_FU.jmx)
scp -r /Users/pundix22/Downloads/NFT_FU.jmx ubuntu@3.90.215.173:/home/ubuntu/NFT_FU.jmx
4,服务器终端修改jmx文件压测数据
vim NFT_FU.jmx
5,执行jmeter命令
jmeter -n -t NFT_FU.jmx -l test.jtl -e -o /home/ubuntu/report/nft
jmx脚本 日志 测试报告
6,打包测试报告
zip -r report_111111.zip report
压缩文件
7,本地终端下载测试报告
scp -r ubuntu@3.90.215.173:/home/ubuntu/report_111111.zip /Users/pundix22/Downloads/report_jmeter.zip