1. Installation
1. Open the browser, enter the Jmeter official website, under download, click on the compressed package under "binaries" to download:
Click to enter the following page
2. Unzip
the mac command to decompress:
tar zxvf apache-jmeter-5.3.tgz
Windows and Mac may be able to decompress manually.
3. After decompression, you can use
mac to open jmeter by clicking jmeter.sh in the bin directory;
win to open jmeter by clicking jmeter.bat in the bin directory;
2. Configure environment variables
1. jdk download and installation Download
: jdk8 , jdk14
installation:
1) After the download is completed, we double-click the file name. At this time, the system will automatically start to verify the MD5 value of the file to determine whether the file is a legal file. .
Check the terminal to see if the installation is successful and enter the command:
java -version
2. Configure environment variables: JMETER_HOME, JAVA_HOME
(a) Configuration
Open the bash_profile file and enter the command:
open -e .bash_profile
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home
JMETER_HOME=/Users/apple/Desktop/Jmeter/apache-jmeter-5.2.1
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar
PATH=$JAVA_HOME/bin:$JMETER_HOME/bin:$PATH
export JAVA_HOME
export PATH
export CLASSPATH
JMETER_HOME=path
JAVA_HOME=path
After configuring, close bash_profile and execute the command to apply the configuration:
source .bash_profile
(b) Verify whether the configuration is successful:
echo $JAVA_HOME
echo $JMETER_HOME
(c) At this point, the environment variables are configured successfully.
3. Start the jmeter
terminal and enter the command to start:
jmeter