Problem scenario
You want a Bash script that will install ActiveMQ on CentOS/RedHat/Fedora, Debian/Ubuntu, and SUSE Linux distributions. How do you write a script that will work on different distributions of Linux to install Apache ActiveMQ?
Solution
With a “sudo bash” command, run a script with the following content (e.g., call the script below “installactivemq.sh” and run “sudo bash installactivemq.sh“):
#!/bin/bash
# Written by www.continualintegration.com
activemqversion=5.15.12
…
Continue reading “How Do You Install Apache ActiveMQ on Any Distribution of Linux?”