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

          #!/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
          內(nèi)容為
          tomcat6 on
          [5]chkconfig --list tomcat6

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

          至此設(shè)置完畢。






          |----------------------------------------------------------------------------------------|
                                     版權(quán)聲明  版權(quán)所有 @zhyiwww
                      引用請注明來源 http://www.aygfsteel.com/zhyiwww   
          |----------------------------------------------------------------------------------------|
          posted on 2010-01-29 13:13 zhyiwww 閱讀(1103) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 宁陕县| 阿勒泰市| 克东县| 福安市| 永宁县| 柏乡县| 张家口市| 微博| 林周县| 冕宁县| 寻乌县| 平遥县| 三台县| 龙岩市| 新源县| 白水县| 炎陵县| 襄垣县| 罗田县| 赤峰市| 中牟县| 昂仁县| 饶阳县| 中方县| 喜德县| 唐山市| 根河市| 大悟县| 丰城市| 陆河县| 阳东县| 滕州市| 海盐县| 五莲县| 南召县| 桦川县| 托克托县| 大荔县| 大足县| 渑池县| 乌拉特后旗|