Jdk与Jemter在Linux安装方式
安装Jdk网址:
https://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html
安装 jdk-8u211-linux-x64.tar.gz
解压 jdk1.8.0_211
cd /usr/lib/
sudo mkdir jdk
cd jdk/
cd 下载 sudo mv jdk1.8.0_211 /usr/lib/jdk/
sudo vi /etc/profile export JAVA_HOME=/usr/lib/jdk/jdk1.8.0_211
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile目的让配置文件生效
重启,source /etc/profile 命令行输入:java或 javac -version
显示版本号说明安装成功
------------------------------------------------------------------------------------------------------------------------------------------------------------
安装Jemter网址:
http://jmeter.apache.org/download_jmeter.cgi
安装 apache-jmeter-5.1.1.zip
解压 apache-jmeter-5.1.1
cd /usr/lib/
sudo mkdir jmeter
cd jmeter/
cd 下载 sudo mv apache-jmeter-5.1.1 /usr/lib/jmeter/
sudo vi /etc/profile export JAVA_HOME=/usr/lib/jmeter/apache-jmeter-5.1.1
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile目的让配置文件生效
如上图标说明配置成功了
重启,source /etc/profile 命令行输入: ./jmeter 启动jmeter
jmeter -v 查看版本