Foreword
Date: 2019/08/01
Note: On the first day of Bo
A, Jmeter download
Download the official website: http: //jmeter.apache.org/
Two, JDK installation
Jmeter need to install java in the environment, the need to install jdk, the best version of the high points.
Corresponding to the general jmeter3.0 of jdk1.7, jmeter4.0 correspond jdk1.8 above, whether the person will enable jmeter error.
I installed jdk1.8, just click Next to install.
Three, Jmeter installation
jmeter after decompression can be used , you can click jmeter.bat running under the bin directory.
Fourth, configure the environment variables
Desktop - This computer - Right Properties - Advanced System Settings - environment variables (win10)
jdk:
PATH:% JAVA_HOME% / bin;% JAVA_HOME% / jre / bin; (if there is no front ";" need to add)
CLASSPATH: .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;
JAVA_HOME: D: \ java \ jdk1.8.0_191 (JDK path)
Discovery and installation path is inconsistent, it has installed a later version of jdk cover
jmeter:
JMETER_HOME: D:\jmeter\apache_jmeter_5.1.1 (Jmeter路径)
CLASSPATH: %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib/logkit-2.0.jar;
PATH: %JMETER_HOME%\bin
V. verify the installation
Enter the command in cmd
java, appear
javac, appear
java -version, the version number appears
jmeter -v, the version information appears jmeter
jmeter, open software