Jgroups 使用哪些端口?

Which ports are used by Jgroups?

我在我的服务器上使用 Wildfly 8,在我的服务器中我使用 Infinispan(使用 Jgroups)作为集群缓存。我想知道 Jgroups/Infinispan 使用哪些端口,这样我就可以打开这些端口在服务器节点之间进行通信,而无需禁用我的 Linux 防火墙。 谢谢。

你有没有用我们这样的基本网络命令检查过 $ netstat -a

您可以在 binarytides

中找到更多示例

您可以在 wildfly/standalone/configuration/ 目录中找到这些答案。我假设您使用的是 standalone-full-ha.xml 配置:

<!-- By default you are using UDP stack -->
<subsystem xmlns="urn:jboss:domain:jgroups:2.0" default-stack="udp">

<!-- Those ports are used for communication -->
<socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
<socket-binding name="jgroups-udp-fd" port="54200"/>