Last active
May 31, 2023 10:22
-
-
Save loretoparisi/c92fbb255d4d1fa3183ceb8fa722107a to your computer and use it in GitHub Desktop.
ActiveMQ Up & Run Linux
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
wget https://dlcdn.apache.org//activemq/5.18.1/apache-activemq-5.18.1-bin.tar.gz | |
gunzip apache-activemq-5.18.1-bin.tar.gz | |
tar -xvf apache-activemq-5.18.1-bin.tar | |
cd apache-activemq-5.18.1 | |
cd conf | |
myIP=$(LANG=C /sbin/ifconfig | sed -ne $'/127.0.0.1/ ! { s/^[ \t]*inet[ \t]\\{1,99\\}\\(addr:\\)\\{0,1\\}\\([0-9.]*\\)[ \t\/].*$/\\2/p; }') | |
sed -i "s/localhost/${myIP}/" jetty.xml | |
cd .. | |
cd bin | |
./activemq start | |
echo "open http://${myIP}:8161/admin/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment