How to install Jmeter
Install HomeBrew
First, we are going to install HomeBrew:
To install HomeBrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
let’s now update HomeBrew package definitions:
brew update
Make sure to update brew before installing JMeter, otherwise you may run into issues like this one:
1 | ==> Downloading http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/apache-jmeter-2.11.tgz ==> Best Mirror http://apache.mirrors.hoobly.com/jmeter/binaries/apache-jmeter-2.11.tgz curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "jmeter" Download failed: http://apache.mirrors.hoobly.com/jmeter/binaries/apache-jmeter-2.11.tgz |
Install JMeter
It’s almost finished now, run:
brew install jmeter
If you wish to install jmeter-plugins along with JMeter, add the –with-plugins flag. After a couple of minutes, JMeter should be installed and ready to use.
brew install jmeter --with-plugins
Launch JMeter
JMeter should be now available as a command-line, try jmeter -h
and you should see something like:
To Launch JMeter, simply run jmeter
:
bobchen@Bob-Chens-MacBook-Pro-2% jmeter