Steps to fix Apache ActiveMQ

Steps-to-fix-Apache-ActiveMQ

Apache ActiveMQ is an open-source message agent written in Java. It gives “Try Features” for which this circumstance means empowering the correspondence from more than one client or server. Maintained clients consolidate Java by methods for JMS 1.1 similarly as a couple of other “cross-language” customers. ActiveMQ offers the power and flexibility to support any messaging use-case. One good feature of ActiveMQ is that there is a pretty extensive unit and functional test suite.   It reduce the complexity and maintenance cost of you application. You can create a micro services and daemons for manage your business workflow.

As it supports industry standard protocols you get the benefits across a broad range of languages and platforms from Java, C, C++, C#, Ruby, Perl, Python, PHP and you can choose the one you feel more comfortable.

Establishment of Apache ActiveMQ on most recent CentOS:

To introduce ActiveMQ, you should have Java introduced on your server. On the off chance that Java isn’t introduced, you need to introduce it. After Java is introduced pursue the means underneath and introduce Apache ActiveMQ.

# cd /opt

# wget https://www.apache.org/dist/activemq/5.15.10/apache-activemq-5.15.10-bin.tar.gz

Presently remove the document record and move it into the extricated catalog:

Eg:

# tar zxvf apache-activemq-5.15.10-bin.tar.gz

# cd apache-activemq-5.15.10

Key catalogs to observe while incorporating:

conf – contains the arrangement documents: the fundamental design record activemq.xml, written in XML group.

file – stores the PID record just as log documents.

lib – stores library records.

webapps – contains the web interface and administrator support documents.

bin – stores parallel record in addition to other related documents.

docs – contains documentation records.

To run the administration Apache ActiveMQ:

To run ActiveMQ as a help, you have to make an ActiveMQ administration unit document under the client called activemq

Eg:

# useradd activemq

Presently, the right consents need to set on the ActiveMQ establishment registry and the majority of its substance that has a place with the recently made client and gathering

Next make a help unit record for ActiveMQ called activemq.service under /etc/systemd/system/

Eg:

# vi /etc/systemd/system/activemq.service

Include the beneath design in the activemq.service document:

[Unit]

Description=Apache ActiveMQ Message Broker

After=network-online.target

[Service]

Type=forking

User=activemq

Group=activemq

WorkingDirectory=/opt/apache-activemq-5.15.10/bin

ExecStart=/opt/apache-activemq-5.15.10/bin/activemq start

ExecStop=/opt/apache-activemq-5.15.10/bin/activemq stop

Restart=on-abort

[Install]

WantedBy=multi-user.target

You can save it and then reload the systemd supervisor arrangement to read the recently made service, using the command – “systemctl daemon-reload” .

Next, you can begin, empower and check the status of Apache ActiveMQ administration

Eg:

# systemctl start activemq.service

# systemctl enable activemq.service

# systemctl status activemq.service

Naturally, the ActiveMQ daemon tunes in on port 61616 and you can affirm the port utilizing the ss utility:

# ss – ltpn

Before you access ActiveMQ web console in the event, if you have the firewalld administration running, then you need to open the port 8161 which the web reassure tunes in on in the firewall using the firewall-cmd tool.

# firewall-cmd –zone=public –permanent –add-port=8161/tcp

# firewall-cmd – reload

Confirm the Installation of ActiveMQ:

The ActiveMQ console is utilized to oversee and screen ActiveMQ by means of the program. To access it open an internet browser and guide it toward the accompanying URL

http://SERVER_IP:8161 likewise you can check the utilizing localhost with the port 816s1

To access Admin gateway of ActiveMQ, sign into the administrator web console by tapping on the “Chief ActiveMQ agent”. Here, the following URL will take you directly to the admin web console login interface.

Hope it was helpful and if you need any assistance Contact Us.

To get updates follow us on Facebook, Twitter, LinkedIn

Subscribe to get free blog content to your Inbox
Loading

Written by actsupp-r0cks