jmeter Series 01 -> mac system set up JDK and JMETER

Foreword

       此刻打盹,你将做梦;而此刻学习,你将圆梦。
       时代在进步,我们IT届的测试工程师大部分都用上了MAC电脑,在MAC上如何搭建JMETER呢,我来分享分享。

First, the environment and the required software Overview

  • Currently 1.1 environment:
    MacOS (10.15.3)

  • 1.2 Required software:
    the JDK-8u91-macosx-x64.dmg (jdk1.8 and above should be able to)
    apache-jmeter-5.2.1.zip (official website to download the latest version)

Second, build a detailed process

2.1 JDK installation configuration i.e.

This step you can refer to my previous post, at the following address:
the JDK build step

Installation Configuration i.e. 2.2 JMETER

  • 2.2.1 download JMETER, download the official website at the following address:
    jmeter Download

Download notes below, we only use the tool, you do not need to download the source code.

  • 2.2.2 After downloading, the downloaded archive into customized software installation path (path own set)

  • 2.2.3 configuration environment variable

1) Open the terminal command, enter the following command to enter the edit page environment variables

vim ~/.bash_profile
  1. After entering the command input i, enter the edit mode, enter the following:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
export JMETER_HOME=/Users/liuqingjun/software/apache-jmeter-5.2.1
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar
export PATH=$JMETER_HOME/bin:$PATH

Note: If you have previously been configured JDK environment variables must be configured JMETER_HOME, modify environment variables JDK CLASSPATH, modify the PATH variable

3) Once configured, enter the command: wq, save and exit vim editor, and then enter the following command for the changes to take effect environment variables

source ~/.bash_profile

4) Enter the commands: jmeter -v, jmeter see whether installation is completed, i.e., below the installation was successful

5) Finally, enter the command: jmeter, you can use open interfaces

2.3 JMETER basic configuration

  1. Chinese interface provided jmeter permanent configuration
    modifications jmeter.properties bin files under the directory path jmeter installation, or look at line 37, "language", the value is modified zh_CN language, and remove the front of the "#" key to cancel comment

  2. jmeter see the results tree garbage problem resolved
    modifications jmeter installation path jmeter.properties bin directory files, find sampleresult.default.encoding = ISO-8859-1, ISO-8859-1 will change as UTF-8, namely sampleresult.default .encoding = UTF-8

Guess you like

Origin www.cnblogs.com/dream66/p/12640942.html