运行 WIndows 服务器上的 ActiveMQ Artemis

Run ActiveMQ Artemis on WIndows Server

很遗憾,我需要在 Windows 服务器上安装 ActiveMQ Artemis。 我能够创建并启动代理。

当我尝试访问控制台时,在登录页面后我看到了这个屏幕。 (下图)。

我试图在 jolokia 上添加这一行-access.xml

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

没有成功。

禁用 Windows 防火墙,同样的行为。

我可以做更多配置来解决这个问题吗?

谢谢!

为了允许从任何地方访问,jolokia-access.xml 中的配置可以是:

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

从安全角度来看,这不是最佳做法,因为您允许从任何地方进行连接。获得访问权限是一个良好的开端,但稍后应该对配置进行更多限制以保护 Artemis。

有关所有详细信息,请参阅 Jolokia Documentation: Chapter 4. Security

附录 1

同时检查 bootstrap.xml 中的绑定,例如:

<web bind="http://0.0.0.0:8161" path="web">

来自 Artemis Documentation: Bootstrap configuration file:

  • web - Configures an embedded Jetty instance to serve web applications like the admin console.

附录 2

作为 Internet Explorer 的解决方法,请为 Connection Settings 输入以下内容:

  • 姓名:artemis(或任何你想要的名字)
  • 方案:httphttps(取决于您的配置)
  • 主机:localhost(在服务器上)或ip/servername
  • 端口:8181(取决于您的配置)
  • 路径:console/jolokia(取决于您的配置)

单击 Connect to remote server 打开仪表板。要查看 acceptors/addresses 的详细信息,请导航至 JMX / org.apache.activemq.artemis

我找到了问题,但我不知道如何解决。 问题出在 Internet Explorer 上。 我在服务器上安装了 Firefox,控制台工作正常。 也许是 Windows 服务器上的安全策略,但我没有找到解决方案。

我做了@BiNZGi 上面说的远程访问控制台的配置,所以我不再需要访问服务器了。

谢谢!