Dependencies: Java
Step 1. Install Java if it is not already installed, to check open Terminal and type:
java — version
Step 2. Download Apache JMeter's latest version from the official site
Step 3. Extract the JMeter file using the command or simply clicking right to the file and selecting Extract
This command will move the extracted file to the Tools folder under the current user
Step 4. Set JMeter Path variable
To set the path variable temporarily use the below command:
export PATH="$PATH":/home/ubuntu/Tools/jmeter/bin
To add the path permanently write the same command in bashrc file, to do this use the below command:
vi .bashrc
Add the command in the first line, save, and exit.
Step 5: Check the JMeter version using the command
JMeter --version
And it is all set, you can run the JMeter CLI or invoke the JMeter GUI through Terminal flawlessly.