Preparation : Install JDK7 above. Https://www.cnblogs.com/Dylansuns/p/6974272.html
1. Download
Cd/home/download
wget https://archive.apache.org/dist/activemq/5.14.0/apache-activemq-5.14.0-bin.tar.gz
2. Create the installation directory
Mkdir/usr/local/activemq
3. Extracting files
TAR-ZXVF apache-activemq-5.14.0-bin.tar.gz-c/USR/LOCAL/ACTIVEMQ
4. Start the service
Cd/usr/local/activemq/apache-activemq-5.14.0/bin/linux-x86-64
chmod 755 ACTIVEMQ
./activemq Start
Three modes of operation:
(1) normal start./activemq start stop./activemq stop
(2) Start and specify the log file./activemq start >tmp/smlog
(3) background start mode nohup./activemq start >/tmp/smlog
In the first two ways, when the command line window is closed or CTRL + C causes the process to exit, the use of background startup can avoid this situation
Execute the./BIN/ACTIVEMQ console into Http://127.0.0.1:8161/admin username:admin password:admin
You can also run in the background: sudo./bin/activemq start stop:./BIN/ACTIVEMQ stop
5. Test whether it started successfully
Netstat-an|grep 61616
Startup failure Handling Method:
1. Check if the JDK is installed successfully
2. May be a port conflict, you need to review the error prompt.
CD./apache-activemq-5.15.4/conf
VI activemq.xml #修改冲突的1883端口为1884
Part of the QUOTE: https://www.cnblogs.com/gossip/p/5969925.html
Linux installation Activemq