UNIX/学生ツール/サーバ/Tomcat


Table of Contents
% cd /usr/local/
% unzip apache-tomcat-X.X.X.zip
/usr/local/apache-tomcat-X.X.X/
setenv JAVA_HOME /usr/local/java/jdk1.5.0
/usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28
/usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/bin/startup.sh
/usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/bin/shutdown.sh
% mkdir ~/tomcat_home
% cp -R /usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/conf ~/tomcat_home/
% cp -R /usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/logs ~/tomcat_home/
% cp -R /usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/webapps ~/tomcat_home/
% cp -R /usr/local/java/netbeans-4.0/nb4.0/jakarta-tomcat-5.0.28/work ~/tomcat_home/
$HOME/tomcat_home
setenv JAVA_HOME /usr/local/java/jdk1.5.0
setenv CATALINA_BASE $HOME/tomcat_home
% bin/startup.sh
% bin/shutdown.sh
% bin/shutdown.sh
(数秒待つ)
% bin/startup.sh

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
    <role rolename="manager"/>
    <role rolename="admin"/>
    <user username="tom" password="cat" roles="manager,admin"/>
</tomcat-users>
webapps/honyarara.war
% rm -rf webapps/honyarara webapps/honyarara.war

xrea