JMeter installation steps and Chinese configuration in MAC environment

1. JDK environment configuration and installation

1.1 . Download JDK 1.8

1.1.1. Download link http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

1.1.2. If you do not have an Oracle account, you need to register an account before downloading;

1.1.3. Verify whether it has been installed locally, and check the version number, enter the terminal and execute java -version

1.1.4. After registering the account, download the installation package. After the download is complete, double-click to install

 

1. 2. Configure environment variables

1.2.1. After the installation is complete, check the jdk installation directory

          Execute /usr/libexec/java_home -V in the terminal to get the path

1.2.2. If it is the first time to configure environment variables, you can execute cd in the terminal to enter the directory and use the command touch .bash_profile to create a hidden file named .bash_profile; if it already exists, directly execute the command open -e .bash_profile , enter edit mode, and configure environment variables;

 

1.2.3. Execute source .bash_profile to make the configuration take effect

1.2.4. Enter echo $JAVA_HOME to display the path just configured. Enter Java -version to view the version number;

2. JMeter installation configuration and startup

2.1 . Download JMeter

2.1.1. Download link (download is very slow, nearly 1 hour)

         Apache JMeter - Download Apache JMeter

 

2.1.2. Create a directory with a custom name (such as Jmeter_tool) under the custom path, and copy the downloaded tar package to this directory, execute the command tar -zxvf to download the compressed package name, and decompress the package;

2.1.3. Use the cd command to enter the apache-jmeter-5.5/bin directory, and execute sh jmeter (start);

 2.1.4, jmeter page after startup

2.2. Configure jmeter startup mode

2.2.1. It is very troublesome to start jmeter in the folder every time. You have to start it in the bin directory every time.

So we write the environment variables of jmeter into the configuration file, and enter the jmeter keyword in any directory to start jmeter

Enter open -e .bash_profile in the terminal, edit the configuration file, write the following content into the configuration file, and exit after writing (same as configuring JDK environment variables)

export JMETER_HOME={ {jmeter file decompression path}}

export PATH=$JAVA_HOME/bin:$PATH:.:$JMETER_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar

2.2.2. After the configuration is complete, enter source .bash_profile to make the configuration take effect; directly enter jmeter in the terminal to start jmeter;

3. JMeter configures Sinicization Chinese

3.1, find the file jmeter.properties

    3.1.1. Use the cd command to enter the apache-jmeter-5.5/bin​​​​​​ directory and find the file jmeter.properties;

    3.1.2. Use open -e jmeter.properties or vim jmeter.properties to open the file and edit, modify and save; as shown below:

3.1.3, Re-open the JMeter page, it has been finished successfully

Guess you like

Origin blog.csdn.net/weixin_44701654/article/details/127954386