I've got 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 (eg 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 (ie 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.