jmeter安装及使用(linux)

(1)将jmeter安装包压缩zip上传到服务器/opt/software/apache-jmeter-4.0.zip
(2)解压: unzip apache-jmeter-4.0.zip
(3)配置环境变量
3.1) vim /etc/profile
3.2)
export JMETER_HOME=/opt/software/apache-jmeter-4.0
export CLASSPATH=$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$CLASSPATH
export PATH=$JMETER_HOME/bin:$PATH
3.3)source /etc/profile
(4)启动jmeter
(5)将编写的jmx文件上传到服务器/opt/software/apache-jmeter-4.0/user_script
(6)进入脚本目录运行:jmeter -n -t test.jmx -l test.jtl
(7)将linux系统产生的jtl文件下载到windows查看结果(聚合报告)

猜你喜欢

转载自www.cnblogs.com/luopan/p/10191306.html