Created
August 22, 2022 09:39
-
-
Save pbandreddy/50ee5ac4131751ee9f3616d4fb8aba67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export JMETER_VERSION="3.1" | |
# Install wger & JRE | |
apt-get clean && \ | |
apt-get update && \ | |
apt-get -qy install \ | |
wget \ | |
default-jre-headless \ | |
telnet \ | |
iputils-ping \ | |
unzip \ | |
nodejs-legacy \ | |
npm | |
# Install phantomjs with npm | |
npm install -g phantomjs | |
# Install jmeter | |
mkdir /jmeter \ | |
&& cd /jmeter/ \ | |
&& wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz \ | |
&& tar -xzf apache-jmeter-${JMETER_VERSION}.tgz \ | |
&& rm apache-jmeter-${JMETER_VERSION}.tgz \ | |
&& mkdir /jmeter-plugins \ | |
&& cd /jmeter-plugins/ \ | |
&& wget https://jmeter-plugins.org/downloads/file/JMeterPlugins-ExtrasLibs-1.4.0.zip \ | |
&& unzip -o JMeterPlugins-ExtrasLibs-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/ \ | |
&& wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.4.0.zip \ | |
&& unzip -o JMeterPlugins-Standard-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/ \ | |
&& wget http://jmeter-plugins.org/downloads/file/JMeterPlugins-WebDriver-1.4.0.zip \ | |
&& unzip -o JMeterPlugins-WebDriver-1.4.0.zip -d /jmeter/apache-jmeter-${JMETER_VERSION}/ | |
# Set Jmeter Home | |
export JMETER_HOME="/jmeter/apache-jmeter-${JMETER_VERSION}" | |
# Add Jmeter to the Path | |
export PATH="$JMETER_HOME/bin:$PATH" | |
$JMETER_HOME/bin/jmeter-server -Dserver.rmi.localport=50000 -Dserver_port=1099 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment