posts - 2, comments - 2, trackbacks - 0, articles - 23
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          tomcat文檔閱讀一:

          Posted on 2012-02-29 15:30 齊納爾多 閱讀(263) 評論(0)  編輯  收藏 所屬分類: 服務器(軟件知識)

          1.tomcat可以配置多個實例,可以為每一個實例定義一個$CATALINA_BASE
            如果tomcat只有一個$CATALINA_BASE 和$CATALINA_HOME 一樣

            說明(網上資料):CATALINA_HOME是Tomcat的安裝目錄,CATALINA_BASE是Tomcat的工作目錄。
              如果我們想要運行Tomcat的多個實例,但是不想安裝多個Tomcat軟件副本。
              那么我們可以配置多個工作目錄,每個運行實例獨占一個工作目錄,但是共享同一個安裝目錄。
              Tomcat每個運行實例需要使用自己的conf、logs、temp、webapps、work和shared目錄,
              因此CATALINA_BASE就指向這些目錄。而其他目錄主要包括了Tomcat的二進制文件和腳本,
              CATALINA_HOME就指向這些目錄。
              如果我們希望再運行另一個Tomcat實例,那么我們可以建立一個目錄,
              把conf、logs、temp、webapps、work和shared拷貝到該目錄下,然后讓CATALINA_BASE指向該目錄即可

          2.英語學習:There's nothing like scouring the web only to find out that the answer was right in front of you all along!
            就像搜索網頁一樣,在你面前的正確答案始終沒有
          3.
          --unix Daemon--
          Tomcat can be run as a daemon using the jsvc tool from the commons-daemon project
           ./configure --with-java=/usr/java
           命令腳本:

           Please note that you should use the GNU make (gmake) instead of the native BSD make on FreeBSD systems
           cd $CATALINA_HOME/bin
              tar xvfz commons-daemon-native.tar.gz
              cd commons-daemon-1.0.x-native-src/unix
              ./configure
              make
              cp jsvc ../..
              cd ../..

          Tomcat can then be run as a daemon using the following commands.

          cd $CATALINA_HOME
              ./bin/jsvc -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar \
                  -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
                  org.apache.catalina.startup.Bootstrap
          You may also need to specify -jvm server if the JVM defaults to using a server VM rather than a client VM. This has been observed on OSX
          (最好指定使用服務器虛擬機-Server JVM)

           jsvc可以加一些參數執行

          4./etc/init.d 可以編輯使得tomcat自動啟動


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 江津市| 洛南县| 青铜峡市| 宁德市| 忻城县| 武平县| 罗田县| 黄龙县| 临夏市| 淮安市| 乐安县| 临澧县| 北海市| 浏阳市| 洛宁县| 安仁县| 龙海市| 佛教| 黔南| 二手房| 合阳县| 潢川县| 宁晋县| 云龙县| 耒阳市| 桂东县| 甘泉县| 五峰| 南皮县| 吐鲁番市| 南充市| 新巴尔虎左旗| 德州市| 鞍山市| 绥阳县| SHOW| 无锡市| 洪江市| 双柏县| 清镇市| 灵武市|