簡體   English   中英

無法將 php stomp 連接到遠程 activemq

[英]unable to connect php stomp to remote activemq

代碼

try {
    $stomp = new Stomp('tcp://xx:xxx:xxx:xxx:61616','admin','admin'); 
    // connection to remote server
} catch(StompException $e) {
    die('Connection failed: ' . $e->getMessage());
}

結果

Connection failed: Server is not responding

上面的代碼適用於localhost或內聯網,但不適用於外部 IP,

使用 java 代碼連接到同一台服務器,但不能使用 php stomp

通常,端口 61616 是代理的 OpenWire 端口,因此 STOMP 客戶端將無法連接到它。 如果您已將其配置為 STOMP,但仍無法從本地網絡外部訪問它,則可能是防火牆問題或某些其他網絡策略阻止了客戶端通過的能力。 由於我們不知道您的配置或網絡拓撲,因此您的管理之外的任何人都無能為力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM