Install the JDK
official website link: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html.
Because my virtual machine configuration is arm, I choose the corresponding version of the installation package to install the package in the Linux environment . How to put the downloaded installation package into the Linux operating system, the recommended command is rz
. First of all, we need to enter yum install -y lrzsz
the command to install
. After the installation is successful, we enter the rz command, click Enter, and a graphical interface will appear. You can choose the file to upload.
We can see that the jdk installation package has been uploaded successfully. Here I will install jdk
Enter in the /var/opt directory tar -xvf jdk-8u351-linux-aarch64.tar.gz
to decompress the file
Enter cd jdk1.8.0_351
the command to enter the jdk1.8.0_291 file, enter pwd
to view the current path, you get /var/opt/jdk1.8.0_351
set the JDK environment variable
enter su - root, switch root user
1|su - root #切换root用户
Enter vi /ect/profile
edit configuration file
export JAVA_HOME=/var/opt/jdk1.8.0_351 # java包路径
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Then press the ESC key, and then input the English input method :wq
to save the data.
Then enter source /etc/profile
the command to make the file take effect.
Then enter java -version
to check whether the jdk environment is successfully built.
We can see that the jdk environment has been successfully built.
Install JMeter
in the same way as above, use the rz command to upload the installation package to the specified directory Use the decompression command
again to decompress the installation package We can see that the decompression has been successful After the installation is successful, let’s configure the JMeter environment variable and enter it againtar -xvf apache-jmeter-5.4.3.tgz
vi /etc/profile
export JAVA_HOME=/var/opt/jdk1.8.0_351
export JMETER_HOME=/var/opt/apache-jmeter-5.4.3
export PATH=$JAVA_HOME/bin:$JMETER_HOME/bin:$PATH
export CLASS_PATH=$JAVA_HOME/lib
Next, we enter the bin directory of jmeter, enter the command chmod +x ./*
, configure the operation authority for all files,
and then enter it source /etc/profile
, we can see that the environment variables of jmeter have been configured successfully, let's run jmeter, and we can see that it has started successfully