JMeter is installed on CentOS
Install JDK beforehand. For more information, please see https://blog.51cto.com/11009785/2376310
1. Install JMeter
Use rz to upload apache-jmeter-4.0.zip to the centos directory fcy
Using unzip to decompress
Cd apache-jmeter-4.0/bin
Sh jmeter.sh-v
two。 Configure environment variables
Vi / etc/profile
Finally, add the following:
Export JMETER_HOME=/fcy/apache-jmeter-4.0
Export PATH=$JMETER_HOME/bin:$PATH
Export CLASSPATH=$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$CLASSPATH
Save exit
To make it effective immediately:
Source / etc/profile
Verify that the environment variable is configured successfully
Jmeter-v