In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the installation of jmeter on linux and the method of configuring environment variables". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the installation of jmeter on linux and the method of configuring environment variables".
First, install jdk. The installation steps are as follows:
(1) check the version of jdk installed on the current system: rpm-qa | grepjdk. If not, perform the next step.
(uninstall the command rpm-e-- nodeps java-1.6.0-1.45.1.11.1.el6.x86_64 [java-1.6.0-1.45.1.11.1.el6.x86_64 is jdk version information])
(2) install jdk1.7: copy the jdk-7u79-linux-x64.rpm file to the / opt/ directory and execute the command:
> > cd / opt/
> > rpm-ivh jdk-7u79-linux-x64.rpm
Confirm that the installation is successful:
> > rpm-qa | grep jdk
(3) finally, modify vi / etc/profile and add the following at the end of the file:
JAVA_HOME=/opt/jdk1.7.0_75
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export JAVA_HOME
Export PATH
Export CLASSPATH
(4) after saving, the user exits
(5) Log in to liunx again to check whether jdk is installed successfully: enter java and java-version, and you can view the version, that is, jdk.
2. Install jmeter by following the steps below:
(1) copy the jmeter used by windows directly to the opt directory, that is, the apache-jmeter-2.13 version
[you can also download apache-jmeter-2.12.tgz (download address: http://jmeter.apache.org/download_jmeter.cgi), move it to the / opt directory, and extract: tar-zxvf apache-jmeter-2.12.tgz]
(2) configure environment variable: vi / etc/profile, enter:
Export PATH=/opt/apache-jmeter-2.13/bin/:$PATH
After saving, the user exits
(3) log in to the linux system again to verify that jmeter can be run: jmeter-v
After the installation is successful, use jmeter. Move datasend.jmx to the root directory and execute it in the root directory
Jmeter-n-t datasend.jmx-l log.jtl
Parameter description:
-n means to run the test plan as nogui
-t represents the test plan, followed by the name of the test plan
-l represents the test result, followed by the name of the test result file
View the generated jtl file and browse the file directly in the aggregate report of jmeter to view the
At this point, I believe you have a deeper understanding of "the installation of jmeter on linux and the method of configuring environment variables". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.