ActiveMQ Artemis如何设置外部电脑访问控制台
1、打开你创建的实例的bootstrap.xml文件:
<broker xmlns="http://activemq.apache.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:/C:/Program%20Files/apache-artemis-2.41.0/instance/mybroker/etc//broker.xml"/>
   <!-- The web server is only bound to localhost by default -->
   <web path="web" rootRedirectLocation="console">
<!--<binding name="artemis" uri="http://localhost:8161">--><!--注释掉这行-->
<binding name="artemis" uri="http://192.168.10.1:8161"><!--换成你部署服务器的ip地址-->
           <app name="console" url="console" war="console.war"/>
       </binding>
   </web>
</broker>
2、打开你创建的实例的jolokia-access.xml文件:
<restrict>
 <cors>
        <!-- Allow cross-origin access from the origins that match the following pattern ... -->
<!--<allow-origin>*://localhost*</allow-origin>--><!--注释掉这行-->
<allow-origin>*://192.168.10.1*</allow-origin><!--换成你部署服务器的ip地址-->
        <!-- Options from this point on are auto-generated by Create.java from the Artemis CLI -->
        <!-- Check for the proper origin on the server side, too -->
        <strict-checking/>
    </cors>
</restrict>
3、启动以及停止实例:
启动:C:\Program Files\apache-artemis-2.41.0\instance\mybroker\bin\artemis.cmd run
停止:C:\Program Files\apache-artemis-2.41.0\instance\mybroker\bin\artemis.cmd stop
 
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号