配置好环境变量后,在WIN+R 输入下面命令直接启动
- 启动关闭cmd
jmeterw
- 启动不关闭cmd
jmeter
cli执行
- linux
/root/soft/apache-jmeter-5.4.3/bin/jmeter -n -t /root/fgxw.jmx -l result.jtl
- windows
jmeter -n -t C:\Users\pc\Desktop\textw.jmx -l result.jtl
生成html报告
- linux
/root/soft/apache-jmeter-5.4.3/bin/jmeter -g /root/result.jtl -o /root/res.html
- windows
jmeter -g C:\Users\pc\Desktop\result.jtl -o C:\Users\pc\Desktop\res.html