Setup Apache JMeter on Ubuntu/debian linux
First off all you need to setp java on yout linux machine.
sudo apt install default-jre
Then run this script
#!/usr/bin/env bash
#
AJ_VERSION="5.2.1"
install_aj(){
cd /tmp/
curl http://apache.volia.net/jmeter/binaries/apache-jmeter-${AJ_VERSION}.tgz --output apache-jmeter-${AJ_VERSION}.tgz
tar -xf apache-jmeter-${AJ_VERSION}.tgz
mkdir -p ~/opt/apache-jmeter
rm apache-jmeter-${AJ_VERSION}.tgz
mv apache-jmeter-${AJ_VERSION}/* ~/opt/apache-jmeter/
}
main(){
install_aj
}
main
After install run app
~/opt/apache-jmeter/bin/jmeter
After start we can see message about creating and running testes. Make test we can in gui mode but run only in cli mode
Run test in cli mode
jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]