2016/05/01

How to install and run Tsung 1.6 on Ubuntu 14.04

Update system
1.[user@localhost ~]$ sudo apt-get update

Install Tsung report generator tool
2.[user@localhost ~]$ sudo apt-get install -y gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl

Install Erlang
3.[user@localhost ~]$ sudo apt-get install -y erlang

Download and install Tsung
4.[user@localhost ~]$ tar -zxvf tsung-1.6.0.tar.gz -C /home/tsung
5.[user@localhost ~]$ cd /home/tsung/tsung-1.6.0/
6.[user@localhost ~]$ ./configure && make && sudo make install
7.[user@localhost ~]$ tsung -v


Tsung commands
8.[user@localhost ~]$ tsung -h

Run Tsung for test ejabberd
9.[user@localhost ~]$ cd examples/
10.[user@localhost ~]$ sudo gedit jabber.xml  (modify host name to your server host or IP address)
11.[user@localhost ~]$ tsung -f jabber.xml start

Tsung report generated
12.[user@localhost ~]$ cd /home/test/.tsung/log/201x0x2x-1234/
13.[user@localhost ~]$ /usr/lib/tsung/bin/tsung_stats.pl

Open report.html
14.Press Ctrl+H to show hidden files.
15.Go to /home/test/.tsung/log/201x0x2x-1234/
16.Find report.html and open it.

沒有留言:

張貼留言