如何为远程访问配置 ActiveMQ Artemis 服务器?

How to configure ActiveMQ Artemis server for remote access?

我在 Unix 机器上安装了 ActiveMQ Artemis 服务器。我能够创建一个 Artemis 代理实例,它为我提供 link 到 localhost 上 运行 的 Web 控制台。

现在我想从外部机器访问 Web 控制台,可能 运行 Windows。

能否指导我逐步配置 ActiveMQ Artemis 服务器,以便我可以从另一台机器访问它?

用于托管 Web 控制台的嵌入式 Jetty Web 服务器在 Artemis 实例的 etc 目录中的 bootstrap.xml 文件中配置。在该文件中查找 web 元素。您需要更改其 bind 属性以使用 localhost 以外的属性,因为 localhost 只能从服务器为 运行 的计算机访问。通常这将是服务器的外部可访问主机名或 IP 地址。

您可以在 Artemis documentation 中找到有关配置嵌入式 Jetty Web 服务器的更多信息。