安裝activemq記錄

在 linux 系統上安裝 activemq的記錄。目前activemq 的最新版本是“5.14.5”
在系統上下載 activemq 的安裝包

wget http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz

下載完成後解壓縮

tar zxvf activemq-5.14.5-bin.tar.gz

啓動 activemq

cd [activemq_install_dir]/bin
./activemq console

這裏寫圖片描述

登錄管理頁面 http://ip:8161/admin
這裏寫圖片描述

修改配置文件,設置登錄名,密碼。

# conf 文件夾下credentials.properties  
# Defines credentials that will be used by components (like web console) to access the broker

activemq.username=system
activemq.password=1111111
guest.password=password

配置web客戶端的用戶名和密碼:

# conf目錄下 jetty-realm.properties 文件
# username: password [,rolename ...]
admin: xxx1234, admin
user: user, user

使用 activemq
添加 maven 依賴

<!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-all -->
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-all</artifactId>
    <version>5.14.5</version>
</dependency>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章