美文网首页
MacOS 安装 JMeter

MacOS 安装 JMeter

作者: Hello泽泽 | 来源:发表于2020-03-27 00:51 被阅读0次

    1.Java环境

    参考: 《MacOS 系统 JDK 安装》

    $ java -version                                                                                                                            
    java version "1.8.0_241"
    Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
    

    2.JMeter 下载

    JMeter 5.0 下载地址: http://jmeter.apache.org/download_jmeter.cgi

    image.png

    3.安装

    $ unzip apache-jmeter-5.2.1.zip
    $ mv apache-jmeter-5.2.1 ~/app/apache-jmeter-5.2.1
    

    4.环境变量配置

    $ vim ~/.bash_profile
    export JMETER_HOME=$HOME/app/apache-jmeter-5.2.1
    export PATH=$PATH:$JMETER_HOME/bin
    export CLASSPATH=$CLASSPATH:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar
    
    $ source ~/.bash_profile
    

    5.版本

    $ which jmeter && jmeter -v 
    /Users/zeze/app/apache-jmeter-5.2.1/bin/jmeter
        _    ____   _    ____ _   _ _____       _ __  __ _____ _____ _____ ____
       / \  |  _ \ / \  / ___| | | | ____|     | |  \/  | ____|_   _| ____|  _ \
      / _ \ | |_) / _ \| |   | |_| |  _|    _  | | |\/| |  _|   | | |  _| | |_) |
     / ___ \|  __/ ___ \ |___|  _  | |___  | |_| | |  | | |___  | | | |___|  _ <
    /_/   \_\_| /_/   \_\____|_| |_|_____|  \___/|_|  |_|_____| |_| |_____|_| \_\ 5.2.1
    
    Copyright (c) 1999-2019 The Apache Software Foundation
    
    

    6.JMeter 配置

    配置文件: /Users/zeze/app/apache-jmeter-5.2.1/bin/jmeter.properties

    6.1. GUI中文

    #language=en
     language=zh_CN
    

    6.2. 报告输出格式

    #jmeter.save.saveservice.output_format=csv
    jmeter.save.saveservice.output_format=xml
    

    相关文章

      网友评论

          本文标题:MacOS 安装 JMeter

          本文链接:https://www.haomeiwen.com/subject/ldrkuhtx.html