Skip to content

Instantly share code, notes, and snippets.

@lionelB
Last active June 1, 2021 02:28
Show Gist options
  • Save lionelB/5d46af1ef140fc5dac76f7cb85883525 to your computer and use it in GitHub Desktop.
Save lionelB/5d46af1ef140fc5dac76f7cb85883525 to your computer and use it in GitHub Desktop.
Install jmeter on Ubuntu
export JMETER_HOME=$HOME/apache-jmeter-5.2.1
export PATH=$PATH:$JMETER_HOME/bin/
# from https://gist.github.com/smithbr/f2f19d7c362ef17530aaa7ccfaefeb06
#
# Download
curl http://mirror.ibcp.fr/pub/apache//jmeter/binaries/apache-jmeter-5.2.1.tgz > $HOME/apache-jmeter-5.2.1.tgz
tar -xvzf $HOME/apache-jmeter-5.2.1.tgz
# Create a .env file
echo "export JMETER_HOME=$HOME/apache-jmeter-5.2.1" > .jmeter.env
echo "export PATH=$PATH:$JMETER_HOME/bin" >> .jmeter.env
source .jmeter.env
# Install jmeter plugin manager & plugins
curl -L https://jmeter-plugins.org/get/ > $JMETER_HOME/lib/ext/plugins-manager.jar
curl -L http://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/2.2/cmdrunner-2.2.jar > $JMETER_HOME/lib/cmdrunner-2.2.jar
java -cp $JMETER_HOME/lib/ext/plugins-manager.jar org.jmeterplugins.repository.PluginManagerCMDInstaller
PluginsManagerCMD.sh install-for-jmx ./your-file.jmx
PluginsManagerCMD.sh install jmeter.backendlistener.elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment