1、本次安装的版本为unzip apache-jmeter-5.0.zip
export JMETER_HOME=/root/apache-jmeter-5.0
exportCLASSPATH=$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
3、执行: source /etc/profile ,让配置生效
如果出现:-bash: /root/apache-jmeter-5.0/bin/jmeter: Permission denied
执行:chmod 777 /root/apache-jmeter-5.0/bin/jmeter
地址:http://shanhe.me/download.php?file=jmeter.results.shanhe.me.xsl
/root/apache-jmeter-5.0/extras
下载地址:https://jmeter-plugins.org/install/Install/
本次的版本为:jmeter-plugins-manager-1.3.jar
把这个jar包放到jmeter的:/root/apache-jmeter-5.0/lib/ext目录下面
1、下载地址:https://ant.apache.org/bindownload.cgi
本次下载版本为:apache-ant-1.10.6-bin.tar.gz
2、上传到服务器与jmeter同一目录,本次的目录为/root
解压文件执行:tar -zxvf apache-ant-1.10.6-bin.tar.gz
3、配置环境变量,在/etc/profile后面添加如下信息
ANT_HOME=/root/apache-ant-1.10.6 CLASS_PATH=.:$JRE_HOME/lib PATH=$JRE_HOME/bin:$ANT_HOME/bin export ANT_HOME CLASS_PATH PATH