linux environment jmeter- java environment setup configuration

First, install the first place to look-digit linux system, use the command getconf LONG_BIT
(Because the service too safe choice 32)

 

uname -a command to view the server is x86 or x64
x86, x86_64 main difference is 32-bit and 64-bit problems, x86 only eight 32-bit general purpose registers, eax, ebx, ecx, edx, ebp, esp, esi, edi. x86_64 this expanded into eight general purpose registers 64, and increased the number of registers than x86 (as if an increase of 8, into a total of 16 general-purpose registers). Bits and the number of registers is also the same MMX extended. In addition cpu extended to 64 bits can also support more memory, and so on a number of benefits.
 
Second, the official website to download the 32-bit JDK8
 
Third, create a directory soft in / usr / local / (there is no need to create)
mkdir /usr/local/soft
 
Fourth, the downloaded jdk-8u181-linux-i586.tar.gz put under good soft create directory
cp /home/ceshi/jdk-8u191-linux-i586.tar.gz .
Fifth, extract the JDK
tar -zxvf jdk-8u191-linux-i586.tar.gz
After extracting the files renamed to jdk8 mv jdk1.8.0_191 / jdk8
 
Sixth, configure the environment variables
vim /etc/profile
export JAVA_HOME=/usr/local/soft/jdk8
export JAVA_BIN=/usr/local/soft/jdk8/bin
export PATH=${PATH}:$JAVA_HOME/bin
export CLASSPATH=:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
注:修改文件后要想马上生效还要运行# source /etc/profile不然只能在下次重进此用户时生效。
配置完输入java 看是否成功
java -version 查看版本
 
执行后报错:bash: /usr/local/soft/jdk8/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
原因:
     /lib/ld-linux.so.2 目录不存在
解决:
    运行命令:yum install glibc.i686
 
七、官网下载 jmeter
mac或者linux:http://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-5.0.tgz
解压文件 tar -zxvf apache-jmeter-5.0.tgz
 
配置环境变量:
export JMETER_HOME=/usr/local/Jmeter/apache-jmeter-5.0
export PATH=$JMETER_HOME/bin:$PATH
配置完成执行 source /etc/profile
输入jmeter命令查看是否成功
 
cd /usr/local/Jmeter/apache-jmeter-5.0/bin/
cp /home/ceshi/rmi_keystore.jks .
记的copy rmi文件
 
补充:
Jmeter解压文件里面的各个目录,文件等
1、目录
bin:核心可执行文件,包含配置
jmeter.bat: windows启动文件:
jmeter: mac或者linux启动文件:
jmeter-server:mac或者Liunx分布式压测使用的启动文件
jmeter-server.bat:mac或者Liunx分布式压测使用的启动文件
jmeter.properties: 核心配置文件
 
extras:插件拓展的包
lib:核心的依赖包
ext:核心包
junit:单元测试包
 
Jmeter语言版本中英文切换
1、控制台修改
menu -> options -> choose language
2、配置文件修改
bin目录 -> jmeter.properties
默认 #language=en
改为 language=zh_CN
 
 
 
 

Guess you like

Origin www.cnblogs.com/summerxye/p/10966030.html