CentOS6 install tsung
Recently studied tsung, installed tsung and its dependent packages on CentOS, and finally installed apache2 to view reports
Through a day of installation, familiar with the yum installation uninstall view, tar package configure, make, make install classic installation
The process is now recorded as follows:
Install gcc-g++
Yum-y install gcc-c++
Install ncurses
Yum-y install ncurses-devel
Install perl
Yum-y install perl-String-CRC32
Yum-y install perl-URI.noarch
Yum-y install perl-CPAN
Still report an error and run it at last
Yum-y install perl-Template-Toolkit installed successfully
1. Install erlang
Wget http://erlang.org/download/otp_src_R13B04.tar.gz
Tar zxvf otp_src_R13B04.tar.gz
Cd otp_src_R13B04
. / configure-- prefix=/home/erlang
Make
Make install
two。 Install ncurses
Wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
Tar zxvf ncurses-5.9.tar.gz
Cd ncurses-5.9
. / configure-- prefix=/home/ncurses
Make
Make install
3. Install perl template
Wget http://www.template-toolkit.org/download/ libtemplate-perl_2.24.orig.tar.gz
Tar zxvf libtemplate-perl_2.24.orig.tar.gz
Cd Template-Toolkit-2.24
Perl Makefile.PL
Make
Make test
Sudo make install
4. Install gnuplot
Wget http://sourceforge.net/projects/gnuplot/files/ gnuplot-4.6.3.tar.gz
Tar zxvf gnuplot-4.6.3.tar.gz
Cd gnuplot-4.6.3
. / configure
Make
Make install
5. Install tsung
Download tsung1.4
Just install it according to the installation method of erlang
Configure tsung
~ / .tsung / tsung.xml is the default configuration file for tsung. If this directory and file do not exist, create this directory manually.
Mkdir / .tsung
6. Install apache2
Wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
Wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
Wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
Wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.4.tar.gz
Install apr-1.4.5.tar.gz first
[root@xt test] # tar-zxf apr-1.4.5.tar.gz
[root@xt test] # cd apr-1.4.5
[root@xt apr-1.4.5] #. / configure-prefix=/usr/local/apr
[root@xt apr-1.4.5] # make & & make install
Installing: apr-util-1.3.12.tar.gz
[root@xt test] # tar-zxf apr-util-1.3.12.tar.gz
[root@xt test] # cd apr-util-1.3.12
[root@xt apr-util-1.3.12] #. / configure--with-apr=/usr/local/apr
[root@xt apr-util-1.3.12] # make & & make install
Installing: pcre-8.10.zip
[root@xt test] # unzip-o pcre-8.10.zip
[root@xt test] # cd pcre-8.10
[root@xt pcre-8.10] #. / configure-prefix=/usr/local/pcre
[root@xt pcre-8.10] # make & & make install
Install pcre-devel, or httpd will not pass. / configure
Yum-y install pcre-devel
Finally install httpd-2.4.4.tar.gz
[root@xt test] # tar-zxf httpd-2.4.4.tar.gz
[root@xt test] # cd httpd-2.4.4
[root@xt apr-1.4.5] #. / configure
[root@xt apr-1.4.5] # make & & make install
Configuration
Vi/usr/local/apache2/conf/httpd.conf
ServerNameIP:80
Launch > usr/local/apache2/bin/apachectl-k start
After startup, perform an open port operation under root authority so that other PC can also be accessed through the IP address
Iptables-I INPUT-p tcp-- dport 5222-j ACCEPT
Iptables-I INPUT-p udp-- dport 5222-j ACCEPT
Configure apache to boot automatically
# vi / etc/rc.d/rc.local
/ / add a line / usr/local/apache/bin/apachectl-k start to rc.local
Restart apache
. / apachectlrestart
/ / establish symbolic links
Cd/var/www
Ln-s / .tsung/log/ tsungreport
This is where you can visit: http://localhost/tsungreport/20120728-0511/report.html to access the report