Jmeter----[Mac computer]Environment configuration and opening Jmeter interface

Prerequisites: To open the Jmeter interface, you first need to install java and configure environment variables.

Step 1: Download and install jdk and environment configuration

  java jdk download: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  

  After the download is successful, you can install it according to the prompts on the page. I will not introduce too much here.

Step 2: Configure the java sdk environment variables.

1. Open the mac terminal

2. If you are configuring environment variables for the first time, you can use " touch .bash_profile " to create a hidden configuration file of .bash_profile (if you are editing an existing configuration file, use " open -e .bash_profile "command to open already created .bash_profile file);

3. Copy and paste the following names in the opened .bash_profile file

  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
  PATH=$JAVA_HOME/bin:$PATH:.
  CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
  export JAVA_HOME
  export PATH
  export CLASSPATH

4. After copying and pasting, save it, and use " source .bash_profile " again to make the configuration take effect.

5. Enter echo $JAVA_HOME to display the path just configured

 

6. Enter java -version to view the installed java version information

 

7. Go to  /Library/Java/JavaVirtualMachines, in this directory you can view the successfully installed jdk1.8.0_162.jdk

 

8. Go to the decompression directory /bin/ of Jmeter and enter sh jmeter to start jmeter.

 

9. jmeter started successfully

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324508431&siteId=291194637