Ubuntu hardy에 specweb2005 설치하기
페이지 정보
작성자 조희승 댓글 0건 조회 7,473회 작성일 12-08-17 15:16본문
- Ubuntu hardy에 specweb2005 설치하기
1) besim
sun java 1.4.x 설치
Besim 설치: java -jar setup.jar
fcgi 설치: cd /opt/SPECweb2005/besim/fcgi-2.4.0; ./configure --libdir=/lib ; make; make install
httpd 설치: apt-get install apache2
besim fcgi 설치:
mkdir -p /var/www/fcgi-bin
cd /opt/SPECweb2005/besim
make fcgi TARGET='clean all install' DEST=/var/www/fcgi-bin/
apache2 fcgi 설치:
apt-get install libapache2-mod-fastcgi
make /usr/lib/apache2/fastcgi
chmod 777 /usr/lib/apache2/fastcgi
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/fastcgi.conf fastcgi.conf
ln -s ../mods-available/fastcgi.load fastcgi.load
vi /etc/apache2/sites-enabled/000-default
# Add following lines
ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/
<Directory "/var/www/fcgi-bin">
AllowOverride None
Options +ExecCGI -Includes
SetHandler fastcgi-script
Order allow,deny
Allow from all
</Directory>
httpd port 변경:
vi ports.conf # 80 -> 81
httpd 재시작:
/etc/init.d/apache2 restart
2) Web server
apache 설치"
apt-get install apache2
SPECWEB server 설치:
java -jar setup.jar
Wafgen:
cd /opt/SPECWEB2005/wafgen
vi unix/bank*.rc # Edit parameter -> SIMULTANEOUS_SESSIONS을 200정도로 주면 2기가 조금 넘는 file set 생성
./Wafgen bank_image_props.rc
./Wafgen bank_usercheck_props.rc
cp -r /opt/SPECWEB2005/scripts/php/Smarty-2.6.7 /var/www/
cp -r /opt/SPECWEB2005/scripts/php/bank/* /var/www/bank/
vi /var/www/bank/init_vars.php # EDIT corressponding fields
chown www-data:www-data -R /var/www/bank
apache mod_ssl enable:
cd /etc/apache2/mod-enabled
ln -s ../mod-available/ssl.load ssl.load
ln -s ../mod-available/ssl.conf ssl.conf
/etc/init.d/apache2 restart
3) Client configuation
Edit Test.config
SIMULTANEOUS_SESSIONS, TEST_TYPE, WEB_SERVER, BESIM_SERVER, BESIM_PORT, BESIM_INIT_SCRIPT, SMARTY_*, etc
Edit SPECweb_Banking.config
PADDING_DIR, CHECK_IMAGE_DIR
4) 순서
a. server 및 besim 가동
b. client 가동 : java specwebclient
c. client controler 가동: java specweb
b,c는 같은 머신에 있어도 무방함
1) besim
sun java 1.4.x 설치
Besim 설치: java -jar setup.jar
fcgi 설치: cd /opt/SPECweb2005/besim/fcgi-2.4.0; ./configure --libdir=/lib ; make; make install
httpd 설치: apt-get install apache2
besim fcgi 설치:
mkdir -p /var/www/fcgi-bin
cd /opt/SPECweb2005/besim
make fcgi TARGET='clean all install' DEST=/var/www/fcgi-bin/
apache2 fcgi 설치:
apt-get install libapache2-mod-fastcgi
make /usr/lib/apache2/fastcgi
chmod 777 /usr/lib/apache2/fastcgi
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/fastcgi.conf fastcgi.conf
ln -s ../mods-available/fastcgi.load fastcgi.load
vi /etc/apache2/sites-enabled/000-default
# Add following lines
ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/
<Directory "/var/www/fcgi-bin">
AllowOverride None
Options +ExecCGI -Includes
SetHandler fastcgi-script
Order allow,deny
Allow from all
</Directory>
httpd port 변경:
vi ports.conf # 80 -> 81
httpd 재시작:
/etc/init.d/apache2 restart
2) Web server
apache 설치"
apt-get install apache2
SPECWEB server 설치:
java -jar setup.jar
Wafgen:
cd /opt/SPECWEB2005/wafgen
vi unix/bank*.rc # Edit parameter -> SIMULTANEOUS_SESSIONS을 200정도로 주면 2기가 조금 넘는 file set 생성
./Wafgen bank_image_props.rc
./Wafgen bank_usercheck_props.rc
cp -r /opt/SPECWEB2005/scripts/php/Smarty-2.6.7 /var/www/
cp -r /opt/SPECWEB2005/scripts/php/bank/* /var/www/bank/
vi /var/www/bank/init_vars.php # EDIT corressponding fields
chown www-data:www-data -R /var/www/bank
apache mod_ssl enable:
cd /etc/apache2/mod-enabled
ln -s ../mod-available/ssl.load ssl.load
ln -s ../mod-available/ssl.conf ssl.conf
/etc/init.d/apache2 restart
3) Client configuation
Edit Test.config
SIMULTANEOUS_SESSIONS, TEST_TYPE, WEB_SERVER, BESIM_SERVER, BESIM_PORT, BESIM_INIT_SCRIPT, SMARTY_*, etc
Edit SPECweb_Banking.config
PADDING_DIR, CHECK_IMAGE_DIR
4) 순서
a. server 및 besim 가동
b. client 가동 : java specwebclient
c. client controler 가동: java specweb
b,c는 같은 머신에 있어도 무방함
댓글목록
등록된 댓글이 없습니다.