Linux下安装jmeter

1.安装jdk

http://jingyan.baidu.com/article/c74d60007b85510f6a595dfa.html

vi /ect/profile

加入

export JAVA_HOME = /usr/java/jdk1.8.0_131
export CLASSPATH = .:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar
export PATH = $PATH:$JAVA_HOME/bin

 

2.上传jmeter 的压缩包到Linux

解压文件

unzip  apache-jmeter-3.0,zip

移动文件

mv apache-jmeter-3.0  /data

配置设置

vi /etc/profile

添加

export JMETER_HOME=/data /apache-jmeter-3.0.

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

 

参考

http://www.cnblogs.com/fengpingfan/p/6028884.html

重新执行刚修改文档

source /etc/profile

 

修改成功输入

jmeter -–version

 

问题

 

查看文件权限

ls -l /data/apache-jmeter-3.0/bin/jmeter

 

更改权限

chmod a+x /data/apache-jmeter-3.0/bin/jmeter

 

 

posted @ 2017-06-07 10:40  jescs  阅读(6659)  评论(0编辑  收藏  举报