最近研究tsung,在CentOS上安裝tsung和它的依賴包,最后安裝apache2,用來查看報表
通過一天的安裝,熟悉了yum的安裝卸載查看,tar包的configure、make、make install經典安裝
現將過程記錄如下:
安裝gcc-g++
yum –y install gcc-c++
安裝ncurses
yum –y install ncurses-devel
安裝perl
yum –y install perl-String-CRC32
yum –y install perl-URI.noarch
yum –y install perl-CPAN
依然報錯,最后運行
yum –y install perl-Template-Toolkit安裝成功
1.安裝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
2.安裝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.安裝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.安裝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.安裝 tsung
下載tsung1.4
按照erlang的安裝方法進行安裝即可
配置tsung
~/.tsung/tsung.xml為tsung默認的配置文件,如果這個目錄和文件不存在,就手動來創建這個目錄
mkdir ~/.tsung
6.安裝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
先安裝apr-1.4.5.tar.gz
[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
在安裝: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
在安裝: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
安裝pcre-devel,不然httpd無法通過./configure
yum–y install pcre-devel
最后安裝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
配置
vi/usr/local/apache2/conf/httpd.conf
ServerNameIP:80
啟動>usr/local/apache2/bin/apachectl -k start
啟動之后,在root權限下執行開放端口操作,這樣其他PC也可以通過IP地址訪問了
iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
iptables -I INPUT -p udp --dport 5222 -j ACCEPT
配置apache開機自動啟動
# vi /etc/rc.d/rc.local
//在rc.local上加入一行/usr/local/apache/bin/apachectl –k start
重新啟動apache
./apachectlrestart
//建立符號鏈接
cd/var/www
ln-s ~/.tsung/log/ tsungreport
這是就可以訪問:http://localhost/tsungreport/20120728-0511/report.html來訪問報表了
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。