开发者

ActiveMQ Web Console only listens on localhost

开发者 https://www.devze.com 2023-03-18 16:27 出处:网络
I\'ve got开发者_如何学Python ActiveMQ installed as I want it. However, the Web Console only listens on localhost - how do I make it listen on all interfaces? I\'m sure it\'s a \"host\"=\"0.0.0.0\" som

I've got开发者_如何学Python ActiveMQ installed as I want it. However, the Web Console only listens on localhost - how do I make it listen on all interfaces? I'm sure it's a "host"="0.0.0.0" somewhere but where?


For the latest versions of ActiveMQ (e.g. 5.5), you can configure within the <activemq>/conf/jetty.xml file by adding a host property setting to the SelectChannelConnector bean.

<bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
    **<property name="host" value="0.0.0.0"/>**
    <property name="port" value="8161" />
</bean>

Looking at the SelectChannelConnector code, if the host property is not set (i.e. null) then it will use the default for InetSocketAddress, which is supposed to be the "wildcard address" per the JavaDoc, so I'm surprised its not automatically binding to all addresses on your server by default.

Hope that helps,

Scott

FuseSource

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号