我没有连接到 ActiveMQ Artemis Web 控制台中的服务器

I have no connection to server in ActiveMQ Artemis web console

我部署了 ActiveMQ Artemis,但我的 Web 控制台没有服务器连接。 jolokia-access.xml 显示:

<restrict>
  <cors>
    <!-- Allow cross origin access from localhost ... -->
    <allow-origin>*</allow-origin>
    <!-- Options from this point on are auto-generated by Create.java from the Artemis CLI -->
    <!-- Check for the proper origin on the server side, too -->
    <strict-checking/>
  </cors>
</restrict>

网络绑定是:

<web path="web">
  <binding uri="http://0.0.0.0:8161">
    <app url="activemq-branding" war="activemq-branding.war"/>
    <app url="artemis-plugin" war="artemis-plugin.war"/>
    <app url="console" war="console.war"/>
  </binding>
</web>

查看下面的控制台输出和服务器日志:

这几乎可以肯定是您的 etc/jolokia-access.xml 配置有问题。 allow-origin 可能没有正确配置。这是默认配置:

<allow-origin>*://localhost*</allow-origin>

您应该将 localhost 替换为代理实际侦听 HTTP 连接的任何主机名或 IP 地址。您可以在 etc/bootstrap.xml.

中找到该信息

无论如何,日志中的错误与网络控制台无关。它与 cluster-connection.

有关