zhyiwww
          用平實的筆,記錄編程路上的點點滴滴………
          posts - 536,comments - 394,trackbacks - 0
          步驟和配置oracle的自啟動相似,不過是腳本不同。
          步驟如下
          [1]touch /etc/init.d/tomcat6
          [2]vim /etc/init.d/tomcat6
          內容如下:

          #!/bin/sh  
          #tomcat auto-start  
          #  
          # description: Auto-starts tomcat  
          # processname: tomcat  
          # pidfile: /var/run/tomcatpid  

          export JAVA_HOME=/opt/jdk1.6.0_18
          export CATALINA_HOME=/opt/apache-tomcat-6.0.18

          case $1 in  
          start)  
          sh $CATALINA_HOME/bin/startup.sh  
          ;;  
          stop)  
          sh $CATALINA_HOME/bin/shutdown.sh  
          ;;  
          restart)  
          sh $CATALINA_HOME/bin/shutdown.sh  
          sh $CATALINA_HOME/bin/startup.sh  
          ;;  
          *)  
          echo 'Usage:tomcat start|stop|restart'  
          ;;  
          esac  

          exit 0



          [3]chkconfig --add tomcat6

          [4]chkconfig --edit tomcat6
          內容為
          tomcat6 on
          [5]chkconfig --list tomcat6

          tomcat6                   0:off  1:off  2:on   3:on   4:on   5:on   6:off

          至此設置完畢。






          |----------------------------------------------------------------------------------------|
                                     版權聲明  版權所有 @zhyiwww
                      引用請注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2010-01-29 13:13 zhyiwww 閱讀(1105) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 张家港市| 视频| 阿克苏市| 敦煌市| 凌源市| 新乐市| 四会市| 沙田区| 广西| 霍林郭勒市| 体育| 涿鹿县| 德州市| 寻甸| 贡嘎县| 兴义市| 霞浦县| 焦作市| 江永县| 巩义市| 蕲春县| 沙洋县| 东阿县| 三原县| 清丰县| 公安县| 子洲县| 德化县| 承德市| 枝江市| 巴林右旗| 晴隆县| 行唐县| 卢湾区| 巴里| 青铜峡市| 东至县| 湖南省| 吴桥县| 永年县| 徐水县|