您好,登錄后才能下訂單哦!
最近研究tsung,在CentOS上安裝tsung和它的依賴包,最后安裝apache2,用來(lái)查看報(bào)表
通過(guò)一天的安裝,熟悉了yum的安裝卸載查看,tar包的configure、make、make install經(jīng)典安裝
現(xiàn)將過(guò)程記錄如下:
安裝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
依然報(bào)錯(cuò),最后運(yùn)行
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的安裝方法進(jìn)行安裝即可
配置tsung
~/.tsung/tsung.xml為tsung默認(rèn)的配置文件,如果這個(gè)目錄和文件不存在,就手動(dòng)來(lái)創(chuàng)建這個(gè)目錄
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無(wú)法通過(guò)./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
啟動(dòng)>usr/local/apache2/bin/apachectl -k start
啟動(dòng)之后,在root權(quán)限下執(zhí)行開放端口操作,這樣其他PC也可以通過(guò)IP地址訪問(wèn)了
iptables -I INPUT -p tcp --dport 5222 -j ACCEPT
iptables -I INPUT -p udp --dport 5222 -j ACCEPT
配置apache開機(jī)自動(dòng)啟動(dòng)
# vi /etc/rc.d/rc.local
//在rc.local上加入一行/usr/local/apache/bin/apachectl –k start
重新啟動(dòng)apache
./apachectlrestart
//建立符號(hào)鏈接
cd/var/www
ln-s ~/.tsung/log/ tsungreport
這是就可以訪問(wèn):http://localhost/tsungreport/20120728-0511/report.html來(lái)訪問(wèn)報(bào)表了
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。