CentOS安装JMeter
mkdir /usr/local/jmeter
新建jmeter目录
cd /usr/local/jmeter
进入jmeter目录
wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-3.3.tgz
下载安装包
tar -zxvf apache-jmeter-3.3.tgz
解压
vim /etc/profile
配置系统环境变量
在最后添加:
export JMETER_HOME=/usr/local/jmeter/apache-jmeter-3.3
export CLASSPATH=$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar:$CLASSPATH
export PATH=$JMETER_HOME/bin:$PATH:$HOME/bin
source /etc/profile
使配置生效
jmeter -v
查看JMeter 版本