1、先安装jdk
参考:https://www.cnblogs.com/maohuidong/p/9277011.html
2、下载jmeter,并上传centos,解压
unzip apache-jmeter-5.2.1.zip
3、
采用全局设置的办法,修改/etc/profile,首先打开配置文件
sudo vim /etc/profile
添加:
export JMETER_HOME=/root/jmeter/apache-jmeter-5.2.1
export CLASSPATH=.:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$CLASSPATH
export PATH=:$JMETER_HOME/bin:$PATH:$HOME/bin
如图:
4、保存:
source /etc/profile
5. jmeter -v检测是否安装成功
本文参考链接:https://www.cnblogs.com/maohuidong/p/14826126.html