Download software
Enter the JMeter download address page, as shown below. There are two versions available for download :
- Binaries: Binary version, which has been compiled and can be executed directly.
- Source: Source code version, you need to compile it yourself.
We download the Binaries version of apache-jmeter-5.4.3.tgz. After the download is completed, decompress it. You can double-click the file to decompress it through the Finder page, or you can decompress it through the terminal input tar -zxvf apache-jmeter-5.4.3.tgz
.
Start the software
1. Enter the directory and start
cd apache-jmeter-5.4.3/bin
sh jmeter
2. Start through environment variables
Set environment variable path:
vi ~/.bash_profile
添加如下内容:
JMETER_HOME= /SoftWare/apache-jmeter-5.4.3
PATH=$JMETER_HOME/bin:$PATH
export PATH
执行命令:
source ~/.bash_profile
Modify Jmeter language
cd /SoftWare/apache-jmeter-5.4.3/bin
vi jmeter.properties