Apache ActiveMQ is a free of charge and source that is open broker software written in Java that can serve as a central point for communication between distributed processes. Apache ActiveMQ is very powerful, comes with easy to use Enterprise Integration Patterns and supports language that is many and protocols. Apache ActiveMQ is sold with many different features including, supports AMQP and MQTT, Cross Language customers and Protocols, help for Enterprise Integration Patterns, supports transport that is pluggable, designed for high-performance clustering, client-server, peer-based communication and much more.
In this tutorial, we will learn how to install Apache ActiveMQ on Debian 9 server.
Prerequisites
- A server Debian that is running 9.(
- A non-root with sudo privileges.
Install Java
ActiveMQ is written in Java, and that means you will have to install Java 8 towards system. You’ll set it up by simply operating the command that is following***)
sudo apt-get install default-jdk -y
Once Java is installed, you can check the version of Java using the following command:
java -version
You should see the following output:
openjdk version "1.8.0_151" OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-1-b12) OpenJDK 64-Bit Server VM (build 25.151-b12, Mixed mode)
Install ActiveMQ
Next, you will need to download the version that is latest regarding the ActiveMQ. You’ll install it from their formal web site utilizing the after demand:
wget http://www-us.apache.org/dist//activemq/5.15.3/apache-activemq-5.15.3-bin.tar.gz
Once the down load is finished, draw out the installed file utilizing the after demand:
tar -xvzf apache-activemq-5.15.3-bin.tar.gz
Next, copy the directory that is extracted the /opt directory:
sudo cp -r apache-activemq-5.15.3 /opt/activemq
Next, start the ActiveMQ service using the following command:
sudo /opt/activemq/bin/activemq start
Next, check whether ActiveMQ is running or not with the following command:
netstat -tulnp | grep java
If everything went fine, you should see the following output:
tcp6 0 0 :::61613 :::* LISTEN 17871/java tcp6 0 0 :::61614 :::* LISTEN 17871/java tcp6 0 0 :::61616 :::* LISTEN 17871/java tcp6 0 0 :::1883 :::* LISTEN 17871/java tcp6 0 0 :::8161 :::* LISTEN 17871/java tcp6 0 0 :::36801 :::* LISTEN 17871/java tcp6 0 0 :::5672 :::* LISTEN 17871/java
Access ActiveMQ Web Interface
By default, ActiveMQ listening on port 8161. Open your web browser and type the URL http://your-server-ip:8161, you will be redirected to the page that is following***)
Next, select Manage ActiveMQ broker, you ought to begin to see the after web page:
right here, enter the username as admin and password as admin, then select OK switch, you ought to begin to see the after web page.
Comments