Installation and deployment of ActiveMQ_Windows version

 

Original link:

https://www.cnblogs.com/yangw/p/5910964.html

1. Make sure that the java version above jdk6 is installed on the computer, and the environment variables are configured;

 

2, Official download address: http://activemq.apache.org/download-archives.html  , use 5.8.0 here

 

3, Unzip the downloaded apache-activemq-5.8.0-bin.zip .

 

4. In the bin directory, you can choose from win32/win64.

5, I am here to enter win64 and run the activemq.bat script

 

 

6. ActiveMQ starts to port 8161 by default. After starting, enter in the address bar of the browser: http://localhost:8161/admin requires a username and password. The default username and password are admin and admin, and you can see the following picture The ActiveMQ console interface has

 

7, The default port of the server is  61616, and the configuration file in our program is configured as follows.

    <bean id="targetConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <!--property name="brokerURL" value="failover:tcp://10.0.26.71:61616" /> -->
        <property name="brokerURL" value="failover:tcp://127.0.0.1:61616" />
    </bean>

 

 

 

Linux platform:

(1) Copy apache-activemq-5.8.0-bin.tar.gz to the server directory, for example, we put it in the /home/oms directory,

       Then tar -zxvf apache-activemq-5.8.0-bin.tar.gz is extracted to the current folder, and the activemq directory after decompression is /home/oms/apache-activemq-5.8.0.

(2) Modify the JVM configuration

      /home/apache-activemq-5.8.0/bin/activemq

 

(3) Port settings

    1. Modify the server port (the default value is 61616)

    2. Modify the console port (the default value is 8161)

 

 (4) Enter /home/oms/apache-activemq-5.8.0/bin

    The start command is activemq start

    The stop command is activemq stop

    The command to check the running status is activemq status.

  If the following prompt appears, the startup is successful:

     

 

 (5) The browser opens: 

MQ console
http://10.0.26.71:8161/admin/queues.jsp admin/admin

  Entering the interface indicates that the deployment is successful.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325401286&siteId=291194637