ActiveMQ Web Console only listens on localhost
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
精彩评论