CentOS配置jmeter或-bash: /root/apache-jmeter-5.5/bin/jmeter: Permission denied
前置条件:系统已安装jdk
一、下载jmeter包,通过客户端放在安装目录
1.本次安装的版本为unzip apache-jmeter-5.5.zip
unzip apache-jmeter-5.5.zip
或者使用Xftp7拖到CentOS root文件中
2.配置环境变量
执行 vim /etc/profile
在后面加入:
export JMETER_HOME=/root/apache-jmeter-5.5
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
让配置生效
4.验证安装
jmeter -v
如果出现:
-bash: /root/apache-jmeter-5.5/bin/jmeter: Permission denied
则给jmeter执行文件授权:
执行:
chmod 777 /root/apache-jmeter-5.5/bin/jmeter
若看到如下图,则安装成功
-----------------------------------