activeMq不能被主机访问的问题

环境说明

主机:mac
虚拟机:VirtualBox
虚拟系统:Centos6.5

问题:虚拟机启动了 activemq。 也关闭了防火墙,但是在主机访问web界面,http://192.168.1.XX:8161/ 访问不了。

解决办法:

# 打开conf/jetty.xml ,注释掉127.0.0.1 这个就行

<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
             <!-- the default port number for the web console -->
        <!-- <property name="host" value="127.0.0.1"/> -->
        <property name="port" value="8161"/>
</bean>
posted @ 2020-12-27 21:03  博客园 涛  阅读(392)  评论(0编辑  收藏  举报