系统环境:windows 7
安装包准备:jdk-7u79-windows-x64.exe,apache-jmeter-2.13.zip
1、下载jdk1.7和jmeter
jdk1.7下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
JMeter官网下载地址:http://jmeter.apache.org/download_jmeter.cgi
2、安装jdk后配置环境变量,这里不再赘述。安装后可在系统cmd命令下输入“java -version”如出现java版本信息说明jdk安装成功
3、安装JMeter
解压apache-jmeter-2.13.zip到E:\apache-jmeter-2.13
配置jmeter环境变量:
在用户变量中,新建变量名“JMETER_HOME”,变量值“E:\apache-jmeter-2.13”
修改系统变量名为“CLASSPATH”,在变量值最后添加“;%JMETER_HOME%/lib/ext/ApacheJMeter_core.jar;%JMETER_HOME%/lib/jorphan.jar;%JMETER_HOME%/lib/logkit-2.0.jar”
4、运行jmeter:
找到E:\apache-jmeter-2.13\bin下jmeter.bat运行
时间: 2024-10-26 18:06:59