1. Install jdk
View the local Java environment
java -version
2. Configure the Java environment Variables
Command: open .bash_profile
If there is no such file, create touch .bash_profile
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home # The path directory on the right side of the equal sign can be through /usr/libexec/java_home -V This command gets export JAVA_HOME=$JAVA_8_HOME # Set an intermediate variable, in order to facilitate multiple Replace JAVA_HOME when JDK version export PATH=$JAVA_HOME/bin:$PATH:. #Before the colon represents the bin directory under the JDK directory, and after the colon represents the current directoryexport CLASSPATH=.:$JAVA_HOME /lib/dt.jar:$JAVA_HOME/lib/tools.jar
Save and close, update the profile: source .bash_profile
4. You can configure jmeter to the environment variable (.bash_profile), It can be opened directly by typing jmeter in the terminal
export PATH=$JAVA_HOME/bin:$PATH:.:$JMETER_HOME/bin:$PATH< /span>
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JMETER_HOME/lib /ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar
3. Install jmeter
< p>Ordinary method
cd into the bin directory, sh jmeter starts