Download, installation and basic use of JMeter
1. Environment preparation
JMeter is developed in java, and the example version of Apache JMeter5.5 requires an environment above jdk1.8.
First check whether jdk is currently installed, win+r enter cmd, open the window and enter java -version, the environment is ok as follows
2. Download and configuration
2.1 Download and unzip
Enter the official website to download: https://jmeter.apache.org/download_jmeter.cgi
Linux (or Unix) system download tgz
Windows system download zip
After downloading, unzip it to the specified directory, and do not move it at will, because system variables need to be configured.
2.2 Configure the system variable JMETER_HOME
This Computer -> Properties -> Advanced System Settings -> System Variables -> New
(the variable value is the path placed after decompression)
变量名 JMETER_HOME
变量值 D:\IdeaProjects\apache-jmeter-5.5
2.3 Configure the system variable CLASSPATH
Note that the variable value at this time ends with a semicolon, so you needAfter adding the semicolonCopy the following configuration directly
%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar
Then click OK all the way
3. Test whether JMeter is configured successfully
Enter the installation directory D:\IdeaProjects\apache-jmeter-5.5\bin
This interface means success
4. The language is permanently changed to Chinese (optional)
Find the configuration file apache-jmeter-5.5\bin\jmeter.properties
about line 39 and add:
language=zh_CN
Save and exit