前言
jmeter是一个java开发的利用多线程原理来模拟并发进行性能测试的工具,Jmeter依赖jdk环境,查看是否安装jdk:
Java -version
mkdir /usr/local/jmeter
cd /usr/local/jmeter
wget https://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-5.2.zip unzip apache-jmeter-5.2.zip
更改配置文件vi /etc/profile :
#jmeter JMETER=/usr/local/jmeter/apache-jmeter-5.2 CLASSPATH=$JMETER/lib/ext/ApacheJMeter_core.jar:$JMETER/lib/jorphan.jar:$JMETER/lib/logkit-2.0.jar:$CLASSPATH PATH=$PATH:$JMETER/bin export JMETER PATH
使配置文件立即生效:
source /etc/profile
jmeter -v
原文:https://www.cnblogs.com/-wenli/p/14163523.html