Created
November 10, 2018 11:21
-
-
Save htaghizadeh/e45fd709cccad6c31c9fa339713439bd to your computer and use it in GitHub Desktop.
Install Apache ActiveMQ on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /opt | |
wget -c "http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.15.7/apache-activemq-5.15.7-bin.tar.gz&action=download" -O apache-activemq-5.15.7-bin.tar.gz | |
tar xzf apache-activemq-5.15.7-bin.tar.gz | |
mv apache-activemq-5.15.7 activemq | |
sudo addgroup --quiet --system activemq | |
sudo adduser --quiet --system --ingroup activemq --no-create-home --disabled-password activemq | |
sudo usermod -c "ActiveMQ Broker" -d /opt/activemq -g activemq activemq | |
sudo chown -R activemq:activemq /opt/activemq | |
sudo chmod u=rwx,g=rxs,o= /opt/activemq | |
sudo cp /opt/activemq/bin/env /etc/default/activemq | |
nano /etc/default/activemq | |
ACTIVEMQ_HOME="/opt/activemq/" | |
ACTIVEMQ_BASE="$ACTIVEMQ_HOME" | |
ACTIVEMQ_CONF="$ACTIVEMQ_BASE/conf" | |
ACTIVEMQ_DATA="$ACTIVEMQ_BASE/data" | |
ACTIVEMQ_TMP="$ACTIVEMQ_BASE/tmp" | |
ACTIVEMQ_USER="activemq" | |
cd /opt/activemq | |
sudo cp bin/activemq /etc/init.d | |
sudo chown root:root /etc/init.d/activemq | |
sudo update-rc.d activemq defaults | |
sudo service activemq start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment