的兩個實例我創建了我安裝了獨立騾子ESB服務器,有兩種sepaerate目錄:騾子ESB:是否有可能啓動騾子ESB
/ee/mmc-distribution-mule-console-bundle-3.5.2-HF1
/ee2/mmc-distribution-mule-console-bundle-3.5.2-HF1
我開始了第一臺服務器,並且在下面的狀態:
[[email protected] mmc-distribution-mule-console-bundle-3.5.2-HF1]# ./status.sh
MMC is running as PID=1998.
Mule Enterprise Edition is running as PID=2619.
然後我嘗試啓動第二個實例:所以顯然端口8585
[[email protected] mmc-distribution-mule-console-bundle-3.5.2-HF1]# ./startup.sh
Port 8585 is in use, please make it available and try again.
正在使用的原instnace
所以我停止了第一instnace,並啓動第二istance,成功地出現,如下:
./startup.sh
Please enter the desired port for Mule [Default 7777]:
Starting MMC, please wait...
class com.sun.jersey.multipart.impl.MultiPartConfigProvider
class com.sun.jersey.multipart.impl.MultiPartReader
class com.sun.jersey.multipart.impl.MultiPartWriter
[11-13 16:49:19] WARN HttpSessionSecurityContextRepository [http-bio-8585-exec-1]: Failed to create a session, as response has been committed. Unable to store SecurityContext.
[11-13 16:49:32] WARN HttpMethodBase [http-bio-8585-exec-12]: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
[11-13 16:49:38] WARN HttpSessionSecurityContextRepository [http-bio-8585-exec-12]: Failed to create a session, as response has been committed. Unable to store SecurityContext.
Nov 13, 2014 4:49:50 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Nov 13, 2014 4:49:50 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8585"]
但發現它好像是用8585爲Tomcat(其中我知之甚少,但它某種應用服務器的,從未使用過它)
我檢查這個網站:
http://www.mulesoft.org/documentation/display/33X/Running+Multiple+Mule+Instances
但它並沒有討論這個問題,它指向的頁面似乎並不是最新的。我誤解的東西
是否有可能在同一時間
,如果是這樣,如何運行騾子ESB的兩個單獨的實例? (我怎麼會改變其使用的端口,我應該修改哪些文件)
感謝
編輯:我的第二個職位響應回答:
(BTW:我使用的騾子ESB獨立企業版3.5.2)
爲了確保我沒有任何在端口8585上運行 的應用程序,我關閉了我的原始實例,並創建了兩個新實例,並確保沒有應用程序部署到任一實例。
我帶出來的第一個實例沒有問題,但我長大了二審仍然給我使用錯誤的端口8585(從startup.sh)
本網站說,MMC默認端口是7777,但在其上運行tomcat的默認端口是8585
http://www.mulesoft.org/documentation/display/current/Setting+Up+MMC-Mule+ESB+Communications
我用下面的命令來查找我的POR t個第二實例中的所有文件8585
find . -type f |xargs grep "8585
除了日誌文件,我有兩個安打
startup.sh
and
/mmc-3.5.2-HF1/apache-tomcat-7.0.52/conf/server.xml
我沒有在任何一種情況下找到$ MULE_HOME /應用/ MMC /騾子-config.xml中(可能是因爲我沒有部署應用程序)
在服務器。XML中,MMC顯然使用Tomcat來 處理MMC應用程序了,和server.xml中包含 如下:
<Connector port="8585" protocol="HTTP/1.1"
所以我想我會在這一點上改變8585至8586,但是......
startup.sh有多個(約9或10)硬編碼引用8585檢查MMC正在運行,並採取行動,如果它是或不在運行
所以我實際上必須改變整個startup.sh用8586替換8585我是第二個實例以及更改server.xml端口8585的參考?
感謝
startup.sh要求MMC端口(默認爲7777),但正如我在我上面最quiest中的第二次編輯中所述, MMC有777的def端口,但爲它供電的etomcat有8585的def端口。沒有應用程序正在運行。我在第二次編輯我的問題時提出的解決方案是否可以解決8585問題? (我正在使用EE獨立3.5.2) – user3407479
mquintas:現在我使用的是./mule而不是./startup.sh,一切正常,所有答案都可以正常工作。謝謝 – user3407479