步骤:
1. Linux下首先安装Jdk;
2. 下载apache-jmeter-4.0.tgz,复制到Linux系统中的/opt目录下; 3. 解压apache-jmeter-4.0.tgz: tar -zxvf apache-jmeter-4.0.tgz 4. 配置Jmeter的环境变量: vi /etc/profile; 5. 添加下述两行: export JMETER=”/usr/local/jmeter/apache-jmeter-4.0″ export CLASSPATH=”$JMETER/lib/ext/ApacheJMeter_core.jar:$JMETER/lib/jorphan.jar:$JMETER/lib/logkit-2.0.jar:$CLASSPATH” 6. 保存并使用配置变量生效: source /etc/profile 7. 校验安装: ./jmeter.sh -h 8. 至此Jmeter在Linux环境下安装成功!