一、下載activemq,下載地址:http://archive.apache.org/dist/activemq。測試版本爲apache-activemq-5.14.1。apache
二、在/ursr/local/目錄下新建activemq文件夾,並進入該文件夾,執行以下命令解壓文件。測試
cd /ursr/local mkdir activemq tar -xzvf apache-activemq-5.14.1-bin.tar.gz
三、在/etc/init.d/目錄增長增長activemq文件,文件內容爲:spa
cd /etc/init.d/ vi activemq
1rest 2code 3ip 4ci 5servlet 6it 7io 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
四、對activemq文件授予權限。
chmod 777 activemq
五、設置開機啓動並啓動activemq
chkconfig activemq on service activemq start
五、訪問地址:http://IP地址:8161/。
訪問成功,ActiveMQ安裝完畢。默認用戶名密碼爲:admin/admin。
六、其餘
查看activemq狀態
service activemq status
其餘和關閉activemq服務
service activemq start service activemq stop
設置開機啓動或不啓動activemq服務
chkconfig activemq on chkconfig activemq off