Linux安装 Jmeter plugins

姬振濂
2023-12-01

https://sarkershantonu.github.io/2021/01/06/install-jmeter-plugins-cli/

前提:已经安装jdk8+

  1. 下载Jmeter
    jmeter下载地址:http://jmeter.apache.org/download_jmeter.cgi

    解压tgz包:

   tar -xvf apache-jmeter-5.3.tgz 
  1. 配置环境变量
export JMETER_HOME=xxxx/jmeter/apache-jmeter-xxx
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$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/ext/jmeter-plugins-xmpp-1.5.1.jar
export PATH=$PATH:$JAVA_HOME/bin:$JMETER_HOME/bin

export /etc/profile

  1. 下载CMD Runner
   cd apache-jmeter-5.3/lib
   curl -O https://repo1.maven.org/maven2/kg/apc/cmdrunner/2.2.1/cmdrunner-2.2.1.jar
  1. 下载 jmeter plugin Manager
cd ext/
curl -O https://repo1.maven.org/maven2/kg/apc/jmeter-plugins-manager/1.6/jmeter-plugins-manager-1.6.jar
  1. 下载Plugins,修改plugin名字成自己想下载的
cd ..
java  -jar cmdrunner-2.2.1.jar --tool org.jmeterplugins.repository.PluginManagerCMD install-all-except jpgc-hadoop,jpgc-oauth,ulp-jmeter-autocorrelator-plugin,ulp-jmeter-videostreaming-plugin,ulp-jmeter-gwt-plugin,tilln-iso8583
 类似资料: