¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥µ¡¼¥Ð¡¼Tomcat¤òÍøÍѤ·¤Æ¥µ¡¼¥Ö¥ì¥Ã¥È¤ÈJSP¤òÍøÍѤǤ­¤ë¤è¤¦¤Ë¤¹¤ë

JDK¤Î¥¤¥ó¥¹¥È¡¼¥ë

Apache¤Ï¥½¡¼¥¹¤«¤é1.3.28¤òÆþ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤¹¤ë

Java2SDK Standard Edition¤òŬÅö¤Ê¥Õ¥©¥ë¥À¤Ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ë
Linux RPM ¼«¸Ê²òÅà¥Õ¥¡¥¤¥ë
http://java.sun.com/j2se/1.4.2/ja/download.html

j2sdk-1_4_2-linux-i586-rpm.bin

# chmod a+x j2sdk-1_4_2-linux-i586-rpm.bin
# ./j2sdk-1_4_2-linux-i586-rpm.bin

¥é¥¤¥»¥ó¥¹¾ò·ï¤¬¤º¤é¤º¤é¤Èɽ¼¨¤µ¤ì¡¢ Do you agree to the above license terms? [yes or no] ¤Èʹ¤¤¤Æ¤¯¤ë¤Î¤Ç yes

# rpm -ivh j2sdk-1_4_2-linux-i586.rpm

´Ä¶­ÊÑ¿ô¤òÀßÄê

# vi /root/.bashrc
export JAVA_HOME=/usr/java/j2sdk1.4.2
export PATH=$PATH:$JAVA_HOME/bin
# source ~/.bashrc

Tomcat¤Î¥¤¥ó¥¹¥È¡¼¥ë

¥Ð¥¤¥Ê¥êÈÇ jakarta-tomcat-3.3.1a.tar.gz ¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë
http://jakarta.apache.org/tomcat/

# tar xvzf jakarta-tomcat-3.3.1a.tar.gz
# cp -rf jakarta-tomcat-3.3.1a /usr/local/tomcat
# chmod +x /usr/local/tomcat/bin/*
# /usr/local/tomcat/bin/startup.sh

http://¥Û¥¹¥È̾:8080/ ¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤ì¤ÐOK Ää»ß¤Ï

# /usr/local/tomcat/bin/shutdown.sh

Tomcat¤ÏñÂΤǤâWWW¥µ¡¼¥Ð¡¼¤Îµ¡Ç½¤¬¤¢¤ë¤¬Apache·Ðͳ¤ÇÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¥³¥Í¥¯¥¿¤ò¼èÆÀ¤¹¤ë
mod_jk¤ÏEAPIÈǤÈÈóEAPIÈǤ¬¤¢¤ë¤¬¡¢mod_ssl¤ò»ÈÍѤ·¤Æ¤¤¤ÆÌÀ¼¨Åª¤ËEAPI¥µ¥Ý¡¼¥È¤ÇApache¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤Ê¤¤¸Â¤ê¤ÏÈóEAPIÈǤò»ÈÍÑ
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1a/bin/linux/i386/

# wget http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1a/bin/linux/i386/mod_jk-3.3-ap13-noeapi.so
# mv mod_jk-3.3-ap13-noeapi.so /usr/local/apache/libexec/mod_jk.so

httpd.conf¤Ë°Ê²¼¤Î°ì¹Ô¤òÄɲÃ

Include /usr/local/tomcat/conf/auto/mod_jk.conf

¥í¥°¤¬É¸½à½ÐÎϤµ¤ì¤ë¤Î¤Ç°Ê²¼¤Î¤è¤¦¤Ë /usr/local/tomcat/conf/server.xml ¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤Æ¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð¤¹¤è¤¦¤Ë¤¹¤ë

<LogSetter name="tc_log" timestamps="true"
    verbosityLevel="INFORMATION" path="logs/tomcat.log" />

8080¤Ï¤Õ¤µ¤°

<!-- Http10Connector   port="8080"
                       secure="false"
                       maxThreads="100"
                       maxSpareThreads="50"
                       minSpareThreads="10" / -->

¥æ¡¼¥¶¡¼¥Ç¥£¥ì¥¯¥È¥ê /home/user ¤ÎÊý¤Ç¤âÆ°¤«¤·¤¿¤¤¾ì¹ç¤Ï°Ê²¼¤Î¤è¤¦¤ËÄɲ乤ë

ContextManager workDir="work" > ¤Î²¼¤Ë

<Context path="/user" docBase="/home/user/java" crossContext="false" debug="0" reloadable="true" />

Tomcat¤ò¥¹¥¿¡¼¥È

# /usr/local/tomcat/bin/startup.sh -jkconf
# /usr/local/tomcat/bin/startup.sh
# /usr/local/apache/bin/apachectl stop
# /usr/local/apache/bin/apachectl start

http://¥Û¥¹¥È̾/examples/jsp/ ¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤ì¤ÐOK


¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:23