Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Last active May 31, 2023 10:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loretoparisi/c92fbb255d4d1fa3183ceb8fa722107a to your computer and use it in GitHub Desktop.
Save loretoparisi/c92fbb255d4d1fa3183ceb8fa722107a to your computer and use it in GitHub Desktop.
ActiveMQ Up & Run Linux
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