¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥µ¡¼¥Ð¡¼Tomcat¤òÍøÍѤ·¤Æ¥µ¡¼¥Ö¥ì¥Ã¥È¤ÈJSP¤òÍøÍѤǤ¤ë¤è¤¦¤Ë¤¹¤ë JDK¤Î¥¤¥ó¥¹¥È¡¼¥ë †Apache¤Ï¥½¡¼¥¹¤«¤é1.3.28¤òÆþ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤¹¤ë Java2SDK Standard Edition¤òŬÅö¤Ê¥Õ¥©¥ë¥À¤Ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ë 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 ¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë # 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·Ðͳ¤ÇÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¥³¥Í¥¯¥¿¤ò¼èÆÀ¤¹¤ë # 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 |