springboot of activemq installation and Practice

Environment: Tencent cloud centos7 

1, download the installation package

https://activemq.apache.org/components/classic/download/

2, extract the installation package

tar -xzvf apache-activemq-5.15.9-bin.tar.gz

3, installation

mkdir /usr/java/

mv apache-activemq-5.15.9 /usr/java/activemq5.15

cd /usr/java/activemq5.15

4, run mq

activemq    start 
            stop
           status

5. Verify successful start

ss -tnalp view the port, if there is 61616, then run successfully.

6, into the management interface to view

http://ip:8161

7, set the password management interface

    a) In the installation directory mq / the conf / jetty.xml added access control.
        <the bean ID = "securityConstraint" class = "org.eclipse.jetty.util.security.Constraint"> 
            <Property name = "name" value = "the BASIC" /> 
            <Property name = "Roles" value = "ADMIN" / > 
            <Property name = "the authenticate" value = "<span style =" Color: # FF0000; "> to true </ span>" /> 
        </ the bean> 

    B) in the installation directory mq / the conf / jetty- realm.properties in , adding users 
        admin: password, admin

Finished!

 

Guess you like

Origin www.cnblogs.com/ywjfx/p/11309778.html