ActiveMQ安裝和配置

2021-09-05 11:14:20 字數 536 閱讀 8785

1. 安裝

解壓安裝包

2. 常用命令

// 啟動(預設配置檔案)

./activemq start

// 停止

./activemq stop

3. 配置

刪除不活動的佇列(delete inactive destinations)

" gcinactivedestinations="true" inactivetimoutbeforegc="30000"/>

在規定的時間內,無有效訂閱,沒有入隊記錄,超時後就會被清理 由於activemq使用時自動建立destination,並且預設情況下不會刪除掉,這種只增加不減少,導致在queue建立頻繁的情況下,本功能非常有用。

4.broker配置

4.1 開啟jmx

4. web控制台位址

Activemq 安裝與集群配置

1.新建資料夾activemq server mkdir server 2.授權 chmod 777 server 4.解壓檔案到執行目錄 activemq server tar xzvf apache activemq 5.9.0 bin.tar.gz 5.修改activemq執行檔案的許可權 c...

ActiveMQ5 13 安裝與配置

1準備 jdk環境 apache activemq 5.13.3 bin.tar.gz 2解壓縮檔案 root master1 cd data software root master1 software tar zxvf apache activemq 5.13.3 bin.tar.gz c da...

ActiveMQ5 13 安裝與配置

1 準備jdk環境 apache activemq 5.13.3 bin.tar.gz 2解壓縮檔案 root master1 cd data software root master1 software tar zxvf apache activemq 5.13.3 bin.tar.gz c da...