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