1、安装JDK环境,1.8及以上
下载地址
https://www.oracle.com/java/technologies/downloads/#java8
安装之后,配置JDK环境变量
vi ~/.bashrc , 或者~/.profile
export JAVA_HOME=/path/to/jdkxxxxx # 自己的JDK目录 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
生效配置
source ~/.bashrc
校验安装
java -version
2、下载Jmeter
http://jmeter.apache.org/download_jmeter.cgi
服务器上输入命令
wget -c https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.5.tgz -o apache-jmeter-5.5.tgz
当然可能比较慢,也可以访问一些镜像站,或者使用一些下载工具下载,当然国内镜像站比较快和安全一些
3、安装配置Jmeter
解压到当前home目录
tar -zxvf apache-jmeter-5.5.tgz
配置
vim ~/.bashrc
export JMETER=~/apache-jmeter-5.5 export PATH=$JMETER/bin:$PATH
生效配置
source ~/.bashrc
4、校验
$ jmeter -v SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/zhangxiaoliang/apache-jmeter-5.5/lib/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/zhangxiaoliang/apache-jmeter-5.5/lib/ext/jmeter-grpc-request.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] _ ____ _ ____ _ _ _____ _ __ __ _____ _____ _____ ____ / \ | _ \ / \ / ___| | | | ____| | | \/ | ____|_ _| ____| _ \ / _ \ | |_) / _ \| | | |_| | _| _ | | |\/| | _| | | | _| | |_) | / ___ \| __/ ___ \ |___| _ | |___ | |_| | | | | |___ | | | |___| _ < /_/ \_\_| /_/ \_\____|_| |_|_____| \___/|_| |_|_____| |_| |_____|_| \_\ 5.5 Copyright (c) 1999-2022 The Apache Software Foundation
参考链接:
https://wzjjmeter.blog.csdn.net/article/details/90524595
标签:jmeter,jar,____,Ubuntu,apache,org,___,JMeter From: https://www.cnblogs.com/fireblackman/p/17323806.html