FC2ブログ


全件表示TopRSSAdmin
apache2 + tomcat5 連携
2005 / 07 / 26 ( Tue )

今回使用したソフトウェア
・httpd-2.0.53.tar.gz
・jakarta-tomcat-5.0.28.tar.gz
・jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
・j2sdk-1_4_2_08-linux-i586.rpm.bin

user$ chmod 755 j2sdk-1_4_2_08-linux-i586.rpm.bin
user$ ./j2sdk-1_4_2_08-linux-i586-rpm.bin
                Sun Microsystems, Inc.
             Binary Code License Agreement
                     for the
JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION,
                 VERSION 1.4.2_X

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION THAT
YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE
LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY
"AGREEMENT").  PLEASE READ THE AGREEMENT CAREFULLY.  BY
DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU ACCEPT THE TERMS OF
THE AGREEMENT. INDICATE ACCEPTANCE BY SELECTING THE "ACCEPT"
BUTTON AT THE BOTTOM OF THE AGREEMENT. IF YOU ARE NOT WILLING TO
BE BOUND BY ALL THE TERMS, SELECT THE "DECLINE" BUTTON AT THE
BOTTOM OF THE AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL
NOT CONTINUE.

1.DEFINITIONS. "Software" means the identified above in binary
form, any other machine readable materials (including, but not
limited to, libraries, source files, header files, and data
files), any updates or error corrections provided by Sun, and
any user manuals, programming guides and other documentation
provided to you by Sun under this Agreement. "Programs" mean
Java applets and applications intended to run on the Java 2
Platform, Standard Edition (J2SETM platform) platform on
Java-enabled general purpose desktop computers and servers.
Do you agree to the above license terms? [yes or no]
yes                ⇒ yes を入力してENTER
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: j2sdk-1_4_2_08-linux-i586.rpm
Done.

root# rpm -Uvh j2sdk-1_4_2_08-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:j2sdk                  ########################################### [100%]

   ⇒ /usr/java ディレクトリが作成され配下にインストールされる。

user$ tar zxvf httpd-2.0.53.tar.gz
user$ cd httpd-2.0.53
user$ ./configure --enable-so --enable-ssl
user$ make
user$ su
root# make install

user$ tar xzvf jakarta-tomcat-5.0.28.tar.gz
user$ su
root# mv jakarta-tomcat-5.0.28 /usr/local/tomcat5

CLASSPATHに/usr/local/tomcat5/common/lib/servlet-api.jar追加
------------<ここから>------------------
export CATALINA_HOME=/usr/local/tomcat5
export CATALINA_BIN=$CATALINA_HOME/bin

export CLASSPATH=$JAVA_HOME/lib/tools.jar
export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib/servlet-api.jar
------------<ここまで>------------------

user$ source ~/.bashrc

user$ tar xzvf jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
user$ cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2
user$ su
user$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat50=/usr/local/tomcat5
user$ make
user$ su
root# cp ../build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules
root# cp ../conf/workers2.properties /usr/local/apache2/conf/

root# vi /usr/local/apache2/conf/httpd.conf
-----------232行目あたりに追記-------------
LoadModule jk2_module modules/mod_jk2.so
------------------------------------------

root# /usr/local/tomcat5/bin/catalina.sh start
root# /usr/local/apache2/bin/apachectl start

⇒ ブラウザから8080ポートでtomcatの画面が見れればOK。



10 : 42 : 36 | トラックバック(0) | コメント(0) | page top↑
| ホーム | 次ページ