4 Haziran 2018 Pazartesi

How to install Apache Jmeter on Ubuntu

Before installing JMeter it is essential to check the presence of Java in your machine as JMeter is a Java based application. If it isn't installed, use the following command to do the same.

How to Install Java 8 on Debian
Oracle Java 8 required by some programs and it is not available on Debian archive due to licensing issues.
To install Java 8 on Debian Jessie with minimum effort, you can use WebUpd8’s Java PPA repositories. Follow the steps below:

First,
update the package index.

root@dhcpserver:~# apt-get update

Next,
To ensure that we get the correct source line on Debian,

:~# vi /etc/apt/sources.list.d/java-8-debian.list

we’ll need to modifies the following command line:

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

Save and exit the file.

root@dhcpserver:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

This should display something like this:

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.2xygQ4W97k --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trus

Update the package index.

root@dhcpserver:~# apt-get update

This should display something like this:
Ign http://ftp.tr.debian.org jessie InRelease                                                                                              
Get:1 http://ppa.launchpad.net trusty InRelease [15.5 kB]

To install JDK 9, use the following command:

root@dhcpserver:~# apt-get install oracle-java8-installer

This should display something like this:
Reading package lists... Done
Building dependency tree     
Reading state information... Done

After installation, you can check the java version:

root@dhcpserver:~# java -version

This should display something like this:

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)


Installing Jmeter

Once Java is installed, restart the Apache serveice as follows:

root@dhcpserver:~# service apache2 restart

The next thing to do is to update your apt source. Use the following command for the same


root@dhcpserver:~# apt-get update

Navigate https://archive.apache.org/dist/jmeter/binaries/ and download the Apache JMeter (3.2 version or others)

The latest  version of Apache JMeter is required. Use the wget command to download it.

root@linuxhelp:~# wget -c https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-3.1.tgz

Once the download is done, extract the downloaded file by using tar command.

root@dhcpserver:~# tar -zxf apache-jmeter-3.2.tgz

Move to JMeter bin directory

root@dhcpserver:~# cd apache-jmeter-3.1/bin/

And list the files for checking the JMeter files.

You can start the Apache JMeter application by using the following command.




Now you can use Apache JMeter.

Hiç yorum yok:

Yorum Gönder