一、jmeter官网下载
https://jmeter.apache.org/download_jmeter.cgi
二、解压下载的包
tar -zxvf apache-jmeter-5.6.3.tgz
三、移动到/opt目录下(你们可以不操作)
mv apache-jmeter-5.6.3 /opt
四、配置环境变量
echo ‘export JMETER_HOME=/opt/apache-jmeter-5.6.3’ | tee -a /etc/profile
echo ‘export PATH=
J
M
E
T
E
R
H
O
M
E
/
b
i
n
:
{JMETER_HOME}/bin:
JMETERHOME/bin:PATH’ | tee -a /etc/profile
echo ‘export CLASSPATH=
J
M
E
T
E
R
H
O
M
E
/
l
i
b
/
e
x
t
/
A
p
a
c
h
e
J
M
e
t
e
r
c
o
r
e
.
j
a
r
:
{JMETER_HOME}/lib/ext/ApacheJMeter_core.jar:
JMETERHOME/lib/ext/ApacheJMetercore.jar:{JMETER_HOME}/lib/jorphan.jar:${CLASSPATH}’ | tee -a /etc/profile
五、重新加载配置文件
source /etc/profile
六、授权访问
chmod -R 777 /opt/apache-jmeter-5.6.3/
七、验证环境变量是否成功
jmeter -v