How to Install JMeter on a Linux Server

To install JMeter on A Linux Server you must first install Java.

Install Java

You must be root, so

sudo bash or sudo su –

List all available packages in the yum repository

yum list

To list specific packages

yum list | grep java

Install Java package

yum install java-1.8.0-openjdk-src.x86_64

or for headless Java (for use in non-GUI environment)

yum install java-1.8.0-openjdk-headless.x86_64

Install JMeter

Download the latest version of JMeter from the Apache JMeter Download Page.

Find the section entitled “Apache JMeter x.x (Requires Java 8+)” (where x.x will indicate the latest version number for JMeter)

Download the file named “apache-jmeter-x.x.tgz” under the list of Binaries (where x.x will indicate the latest version number for JMeter)

Note: At the time of writing, the latest version of JMeter is 5.3 so I will use this version number for the following example, but substitute whatever the latest version number is for your installation.

Go to the directory where apache-jmeter-5.3.tgz has been downloaded and extract the file contents:

tar -xf apache-jmeter-5.3.tgz

Go to the JMeter directory:

cd apache-jmeter-5.3

Then run JMeter:

./bin/jmeter

or enter the following for help:

./bin/jmeter -?

for help.

Note: Make sure that you have a JRE/JDK correctly installed and the JAVA_HOME environment variable is set.

Give a Comment