1.创建实例
2.修改实例broker中的bootstrap.xml文件
修改配置创建的实例broker中的bootstrap.xml,修改为bind=“http://0.0.0.0:8161”
配置如下:
<broker xmlns="http://activemq.org/schema">
<jaas-security domain="activemq"/>
<!-- artemis.URI.instance is parsed from artemis.instance by the CLI startup.
This is to avoid situations where you could have spaces or special characters on this URI -->
<server configuration="file:/broker/etc//broker.xml"/>
<!-- The web server is only bound to localhost by default -->
<web bind="http://0.0.0.0:8161" path="web">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</web>
</broker>
本文档介绍了如何在ActiveMQ中修改broker的bootstrap.xml文件,将Web服务器的绑定地址改为`http://0.0.0.0:8161`,以允许从任何IP地址访问。配置涉及的元素包括jaas-securitydomain、server配置以及web服务器的bind地址和应用设置。
138

被折叠的 条评论
为什么被折叠?



