https://sarkershantonu.github.io/2021/01/06/install-jmeter-plugins-cli/
前提:已经安装jdk8+
下载Jmeter
jmeter下载地址:http://jmeter.apache.org/download_jmeter.cgi
解压tgz包:
tar -xvf apache-jmeter-5.3.tgz
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
cd apache-jmeter-5.3/lib
curl -O https://repo1.maven.org/maven2/kg/apc/cmdrunner/2.2.1/cmdrunner-2.2.1.jar
cd ext/
curl -O https://repo1.maven.org/maven2/kg/apc/jmeter-plugins-manager/1.6/jmeter-plugins-manager-1.6.jar
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