Installing ACTIVEMQ on Linux

Source: Internet
Author: User

1. Create a new folder Activemq
Mkdir/server

2. Authorization
chmod 777/server

3. Download the ACTIVEMQ installation package and copy it to the/ACTIVEMQ directory
Apache-activemq-5.6.0-bin.tar.gz,http://activemq.apache.org/download.html

4. Unzip the file to the running directory/activeserver
Tar-xzvf/server/apache-activemq-5.6.0-bin.tar.gz

5. Modify the permissions of the ACTIVEMQ run file
Cd/server/apache-activemq-5.6.2/bin
chmod 755 ACTIVEMQ
Run./activemq

6. Running
Three modes of operation:
(1) normal start./activemq Start
(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

7. Check that it has been started
The ACTIVEMQ defaults to 61616 ports for the JMS service, using 8161 ports to provide the management console service, and executes the following command to verify that the ACTIVEMQ service has been successfully started.
Open port: Nc-lp 61616 &
See which ports are open NETSTAT-ANP
See if Port 61616 is open: Netstat-an | grep 61616
Check whether it has started:
(1). View console output or log files
(2). Direct access to ACTIVEMQ Administration page: http://localhost:8161/admin/

8. Close
If the open mode is using (1) or (2), then CTRL + C or close the corresponding terminal can be
If the open mode is (3), then a little bit more trouble:
First find the ACTIVEMQ corresponding process:
Ps-ef | grep ACTIVEMQ
Then kill the corresponding process, assuming the process number 168168 is found.
Kill-9 168168
======================

Related documents
ACTIVEMQ Installation: http://feirou520.iteye.com/blog/291284
Baidu Library: http://wenku.baidu.com/view/e9ea05dc7f1922791688e8f2.html###

Installing ACTIVEMQ on Linux

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.