使用特定 IP 地址配置 ActiveMQ 5.16.0 Web 控制台

问题描述

我刚刚在 Linux 机器 OEL7.8 上安装了 ActiveMQ 5.16.0。我可以使用 http://localhost:8161 打开控制台,但是当我在同一台机器上使用 http://IP:8161 时,控制台页面没有在浏览器中打开。在 jetty.xml 文件activemq.xml 文件中是否需要进行任何配置?

解决方法

host 中的 jettyPort bean 上使用 conf/jetty.xml 属性,例如:

    <bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
        <property name="host" value="IP"/>
        <property name="port" value="8161"/>
    </bean>