gembin

          OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

          HBase, Hadoop, ZooKeeper, Cassandra

          Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

          There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

          About Me

           

          如何同時啟動多個Tomcat服務器

           
           
          出于某種需要,需要同時啟動多個Tomcat服務器

          所用Tomcat服務器都為zip版,非安裝版。以兩個為例:
          安裝第二個Tomcat完成后,到安裝目錄下的conf子目錄中打開server.xml文件,查找以下三處:

            (1) 修改http訪問端口(默認為8080端口)
                    
          <Connector   className="org.apache.coyote.tomcat4.CoyoteConnector"   port="8080"  
                                         minProcessors
          ="5"   maxProcessors="75"
             
                                          enableLookups
          ="true"   redirectPort="8443"
             
                                          acceptCount
          ="100"   debug="0"   connectionTimeout="20000"
             
                                          useURIValidationHack
          ="false"   disableUploadTimeout="true"   />
           

          (大概在86行左右)將8080修改為第一個tomcat不在使用的端口號。此處所設的端口號即是以后訪問web時所用的端口號。   

            (2) 修改Shutdown端口(默認為8005端口) 
              
          <Server port="8005" shutdown="SHUTDOWN" debug="0">

           
           
           (大概在13行左右)將8005修改為沒有在使用的端口號,例如8095    

            (3) 修改8009端口 
                    
             < Connector    className ="org.apache.coyote.tomcat4.CoyoteConnector"    
                                          port
           ="8009"    minProcessors ="5"    maxProcessors ="75" 
             
                                          enableLookups
           ="true"    redirectPort ="8443" 
             
                                          acceptCount
           ="10"    debug ="0"    connectionTimeout ="20000" 
            
                                          useURIValidationHack
           ="false" 
             
                                         protocolHandlerClassName
           ="org.apache.jk.server.JkCoyoteHandler" /> 

            (大概在107行左右)將8009修改為沒有在使用的端口號,例如8099   
              
          這樣就沒問題了。

          posted on 2007-09-21 11:15 gembin 閱讀(1092) 評論(1)  編輯  收藏

          評論

          # re: 如何同時啟動多個Tomcat服務器 2007-09-22 00:14 千里冰封

          呵呵,挺實用的,不錯一般很少碰到  回復  更多評論   


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


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           

          導航

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(440)

          隨筆檔案(378)

          文章檔案(6)

          新聞檔案(1)

          相冊

          收藏夾(9)

          Adobe

          Android

          AS3

          Blog-Links

          Build

          Design Pattern

          Eclipse

          Favorite Links

          Flickr

          Game Dev

          HBase

          Identity Management

          IT resources

          JEE

          Language

          OpenID

          OSGi

          SOA

          Version Control

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          free counters
          主站蜘蛛池模板: 达孜县| 桑日县| 宜春市| 大关县| 独山县| 庆安县| 淮滨县| 右玉县| 郑州市| 石首市| 萨迦县| 新绛县| 勃利县| 边坝县| 开远市| 垫江县| 微博| 九龙城区| 乌审旗| 墨江| 三江| 历史| 台北县| 定结县| 始兴县| 什邡市| 上杭县| 新乡县| 尉氏县| 镶黄旗| 长寿区| 淮安市| 兰州市| 镇平县| 六盘水市| 赤峰市| 新干县| 登封市| 年辖:市辖区| 南和县| 襄樊市|