jmeter安装
前段时间用jmeter测试数据库,给领导写了些说明,再此记录下。
关于jmeter的知识,也是参考了许多博客,自己做了整理及实践。
安装包安装
- 官网地址:https://jmeter.apache.org/download_jmeter.cgi
- 直接解压
- 配置环境变量
- JMETER_HOME=E:\test\jmeter\apache-jmeter-5.0
- PATH=%JMETER_HOME%\bin
- CLASSPATH=E:\test\jmeter\apache-jmeter-5.0\lib\ext\ApacheJMeter_core.jar;E:\test\jmeter\apache-jmeter-5.0\lib\jorphan.jar;E:\test\jmeter\apache-jmeter-5.0\lib\logkit-2.0.jar;
联网服务器wget下载安装
- 下载jdk并设置
- mkdir /usr/java
- cd /usr/java
- wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.tar.gz"
- tar -xvzf jdk-8u141-linux-x64.tar.gz
- vi /etc/profile
- JAVA_HOME=/usr/java/jdk1.8.0_141
- export PATH=$JAVA_HOME/bin:$PATH
- export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
- source /etc/profile
- java -v
- 下载jmeter并设置
- mkdir /usr/Jmeter
- cd /usr/Jmeter
- wget https://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-5.1.1.zip
- unzip apache-jmeter-5.1.1.zip
- vi /etc/profile
- JMETER=/usr/Jmeter/apache-jmeter-5.1.1
- CLASSPATH=$JMETER/lib/ext/ApacheJMeter_core.jar:$JMETER/lib/jorphan.jar:$JMETER/lib/logkit-2.0.jar:$CLASSPATH
- PATH=$PATH:$JMETER/bin
- export JMETER PATH
- source /etc/profile
- jmeter -v
- chmod -R 777 jmeter.sh
- jmeter.sh -v
努力做一个爱学习并且会学习的技术人。