Linux builds JMeter environment (super detailed)

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 insert image description here. 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 lrzszthe command to install insert image description here
. 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.
insert image description here
We can see that the jdk installation package has been uploaded successfully. Here I will install jdk
insert image description hereEnter in the /var/opt directory tar -xvf jdk-8u351-linux-aarch64.tar.gzto decompress the file
Enter cd jdk1.8.0_351the command to enter the jdk1.8.0_291 file, enter pwdto view the current path, you get /var/opt/jdk1.8.0_351
insert image description here
set the JDK environment variable
enter su - root, switch root user

1|su - root #切换root用户

Enter vi /ect/profileedit 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 :wqto save the data.
Then enter source /etc/profilethe command to make the file take effect.
Then enter java -versionto check whether the jdk environment is successfully built.
insert image description here
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 insert image description here
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.tgzinsert image description here
insert image description here
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, insert image description here
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
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42274846/article/details/128175762