同一臺電腦運行多個JBoss時端口號修改問題

   原文地址:http://springsfeng.iteye.com/blog/1097187

當在同一臺機器上運行兩個JBOSS實例的時候,則需要修改在以下端口號:

1. default\conf\jboss-service.xml中的1098,1099,4444,4445,8083:

    ===> line : 191 --<attribute name="RmiPort">1098</attribute>
                      <attribute name="RmiPort">59200</attribute>
 
    ===> line : 185 --<attribute name="Port">1099</attribute>  和

                       應用程序中的配置文件“applicationContext.xml”文件中
                      <attribute name="Port">59300</attribute>   “jnp://localhost:”號保持一致(jnidiTemplate)。

    ===> line : 306 --<attribute name="RMIObjectPort">4444</attribute>
                      <attribute name="RMIObjectPort">57214</attribute>

    ===> line : 330 --<attribute name="ServerBindPort">4445</attribute>
                      <attribute name="ServerBindPort">57219</attribute>

    ===> line : 164 --<attribute name="Port">8083</attribute>
                      <attribute name="Port">52144</attribute>

2. default\deploy\jbossweb-tomcat50.sar\server.xml中8080 ; 訪問端口:

     ===>  line :12--- 8080== 59100;
     ===>  line :28--- 8443== 8453;

3. default\deploy\jms\uil2-service.xml中的8093端口,端口號<60000:

    ===>line 22-- <attribute name="ServerBindPort">8093</attribute>
                           <attribute name="ServerBindPort">52154</attribute>。

   具體應用中,需做測試。

發佈了55 篇原創文章 · 獲贊 14 · 訪問量 17萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章