Linux installation Activemq

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.