Download, installation and basic use of the stress testing tool JMeter (1)

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
insert image description here

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
insert image description here
After downloading, unzip it to the specified directory, and do not move it at will, because system variables need to be configured.
insert image description here

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

insert image description here

2.3 Configure the system variable CLASSPATH

insert image description here
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
insert image description here
This interface means success
insert image description here

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

insert image description here
Save and exit

Guess you like

Origin blog.csdn.net/qq_29864051/article/details/130209969