1. 程式人生 > >Linux_CentOS 7.2 64位之安裝apache-activemq-5.15.6步驟

Linux_CentOS 7.2 64位之安裝apache-activemq-5.15.6步驟

下載檔案:
1. 解壓:
tar -xvf apache-activemq-5.15.6-bin.tar.gz
 
2. 找到檔案解壓位置:
[[email protected]_0_13_centos apache-activemq-5.15.6]# pwd
/wangqinmin/mq/activeMQ/apache-activemq-5.15.6

3. 編輯環境變數:
vim /etc/profile

4. 跳到最後一行 增加:
export ACTIVEMQ_HOME=/wangqinmin/mq/activeMQ/apache-activemq-5.15.6
export ACTIVEMQ_BIN=$ACTIVEMQ_HOME/bin
export PATH=${PATH}:${ACTIVEMQ_BIN}

5. 重新整理環境配置檔案:
source /etc/profile

6. 找到啟動目錄:
/wangqinmin/mq/activeMQ/apache-activemq-5.15.6/bin/linux-x86-64

7. 啟動及停止命令:
#啟動
[
[email protected]
_0_13_centos linux-x86-64]# ./activemq start Starting ActiveMQ Broker... #停止 [[email protected]_0_13_centos linux-x86-64]# ./activemq stop Stopping ActiveMQ Broker... ActiveMQ Broker was not running.